summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-03-16 22:17:34 -0700
committerGitHub <noreply@github.com>2023-03-16 22:17:34 -0700
commitfc9cba5307d166f7fda3f7e2c8b5bed7b06fef54 (patch)
tree1a7e73b2b00cd5672c0c7318a6f4ab52cf7c5557 /source/core
parent2fd1ac6c85230d47c008e45fefcc1c49400e96bd (diff)
Add `[CudaDeviceExport]` to allow exporting CUDA device functions. (#2708)
* Add `[CudaDeviceExport]` to allow exporting CUDA device functions. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-type-text-util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-type-text-util.cpp b/source/core/slang-type-text-util.cpp
index 2ba3011d8..d37051e47 100644
--- a/source/core/slang-type-text-util.cpp
+++ b/source/core/slang-type-text-util.cpp
@@ -83,6 +83,7 @@ static const CompileTargetInfo s_compileTargetInfos[] =
{ SLANG_SHADER_SHARED_LIBRARY, "dll,so", "sharedlib,sharedlibrary,dll" },
{ SLANG_CUDA_SOURCE, "cu", "cuda,cu" },
{ SLANG_PTX, "ptx", "ptx" },
+ { SLANG_CUDA_OBJECT_CODE, "obj,o", "cuobj,cubin" },
{ SLANG_SHADER_HOST_CALLABLE, "", "host-callable,callable" },
{ SLANG_OBJECT_CODE, "obj,o", "object-code" },
{ SLANG_HOST_HOST_CALLABLE, "", "host-host-callable" },