From fc9cba5307d166f7fda3f7e2c8b5bed7b06fef54 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 16 Mar 2023 22:17:34 -0700 Subject: Add `[CudaDeviceExport]` to allow exporting CUDA device functions. (#2708) * Add `[CudaDeviceExport]` to allow exporting CUDA device functions. * Fix. --------- Co-authored-by: Yong He --- source/core/slang-type-text-util.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/core') 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" }, -- cgit v1.2.3