diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-04-14 14:56:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-14 14:56:15 -0400 |
| commit | bad484d838590d0a2aaf1b5b8ac820634af2decb (patch) | |
| tree | 00d41c9a6df3b4130a705a43b2a481a2e0207fc0 /docs | |
| parent | 7fc8e11c378e2f6268ce99a27660aab2aa54c1d8 (diff) | |
NVTRC 64 bit requirement (#1792)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Made 64 bit requirement clearer for CUDA/PTX.
Added compile assert for NVRTC for 32 bit OS, that are known to require 64bit.
* Disabled location of NVRTC on linux/win x86.
* Only restrict NVRTC on windows
* Simplify checking on 64 bit windows for NVRTC.
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cuda-target.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/cuda-target.md b/docs/cuda-target.md index 0237fa163..8ee023e85 100644 --- a/docs/cuda-target.md +++ b/docs/cuda-target.md @@ -1,7 +1,9 @@ Slang CUDA Target Support ========================= -Slang has preliminary support for producing CUDA source, and PTX binaries using nvrtc. +Slang has preliminary support for producing CUDA source, and PTX binaries using (NVRTC)[https://docs.nvidia.com/cuda/nvrtc/index.html]. + +NOTE! NVRTC is only available for 64-bit operating systems. On Windows Visual Studio make sure you are compiling for 'x64' and/or use 64 bit Slang binaries. # Features @@ -26,7 +28,7 @@ The following are a work in progress or not implemented but are planned to be so # How it works -For producing PTX binaries Slang uses NVRTC. NVRTC dll/shared library has to be available to Slang (for example in the appropriate PATH for example) for it to be able to produce PTX. +For producing PTX binaries Slang uses (NVRTC)[https://docs.nvidia.com/cuda/nvrtc/index.html]. NVRTC dll/shared library has to be available to Slang (for example in the appropriate PATH for example) for it to be able to produce PTX. The NVRTC compiler can be accessed directly via the pass through mechanism and is identifed by the enum value `SLANG_PASS_THROUGH_NVRTC`. |
