diff options
| author | Yong He <yonghe@outlook.com> | 2020-09-17 16:46:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-17 16:46:23 -0700 |
| commit | 2ddca33686c08e1833c0d82a420fb2b27cde4e37 (patch) | |
| tree | eac30dde6995ed16afbf89bf00b1bf76e7ebfb1f /source/slang/slang-emit.cpp | |
| parent | 017acb3b58df51ec8bf3bb7eb9f66e58b6713145 (diff) | |
Initial attempt to enable CUDA dynamic dispatch codegen (#1549)
* Front-load cuda module loading to fill in RTTI pointers.
* Enable dynamic dispatch codegen for CUDA.
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 09e5c9b2d..4b7b13e4f 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -310,6 +310,7 @@ Result linkAndOptimizeIR( switch (target) { case CodeGenTarget::CPPSource: + case CodeGenTarget::CUDASource: // For targets that supports dynamic dispatch, we need to lower the // generics / interface types to ordinary functions and types using // function pointers. @@ -666,6 +667,7 @@ Result linkAndOptimizeIR( switch (target) { case CodeGenTarget::CPPSource: + case CodeGenTarget::CUDASource: break; default: // For all targets that don't support true dynamic dispatch through |
