summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-stdlib.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-03-30 12:50:02 -0700
committerGitHub <noreply@github.com>2023-03-30 12:50:02 -0700
commit917416f6db7056cddff9d2a0e4e9b4117359157d (patch)
tree9bd6aa89f235e4692cff83cdbe1ce4aae7ea861f /source/slang/slang-stdlib.cpp
parente3b701c9f56f4a2fb8c56a65b5c75b49ee72ca73 (diff)
More builtin library support in torch backend. (#2760)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
-rw-r--r--source/slang/slang-stdlib.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp
index 17fb3d28b..9d4a079c8 100644
--- a/source/slang/slang-stdlib.cpp
+++ b/source/slang/slang-stdlib.cpp
@@ -244,6 +244,9 @@ namespace Slang
{kIROp_Leq, "leq", "<=", "__BuiltinArithmeticType", ARITHMETIC_MASK | BOOL_RESULT},
};
+ // Integer types that can be used in atomic operations in CUDA.
+ static const char* kCudaAtomicIntegerTypes[] = { "int", "uint", "uint64_t", "int64_t" };
+
// Both the following functions use these macros.
// NOTE! They require a variable named path to emit the #line correctly if in source file.
#define SLANG_RAW(TEXT) sb << TEXT;