Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] Fix docs of options argument in RawKernel and RawModule #2774

Merged
merged 1 commit into from Dec 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions cupy/core/raw.pyx
Expand Up @@ -21,8 +21,10 @@ cdef class RawKernel:
Args:
code (str): CUDA source code.
name (str): Name of the kernel function.
options (str): Compiler options passed to NVRTC. For details, see
https://docs.nvidia.com/cuda/nvrtc/index.html#group__options.
options (tuple of str): Compiler options passed to the backend (NVRTC
or NVCC). For details, see
https://docs.nvidia.com/cuda/nvrtc/index.html#group__options or
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#command-option-description
backend (str): Either `nvrtc` or `nvcc`. Defaults to `nvrtc`
translate_cucomplex (bool): Whether the CUDA source includes the header
`cuComplex.h` or not. If set to ``True``, any code that uses the
Expand Down Expand Up @@ -216,9 +218,10 @@ cdef class RawModule:

Args:
code_or_path (str): CUDA source code or path to cubin.
options (str): Compiler options passed to NVRTC if compilation is
needed. For details, see
https://docs.nvidia.com/cuda/nvrtc/index.html#group__options.
options (tuple of str): Compiler options passed to the backend (NVRTC
or NVCC). For details, see
https://docs.nvidia.com/cuda/nvrtc/index.html#group__options or
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#command-option-description
backend (str): Either `nvrtc` or `nvcc`. Defaults to `nvrtc`
translate_cucomplex (bool): Whether the CUDA source includes the header
`cuComplex.h` or not. If set to ``True``, any code that uses the
Expand Down