From 2ddca33686c08e1833c0d82a420fb2b27cde4e37 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 17 Sep 2020 16:46:23 -0700 Subject: 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. --- source/slang/slang-emit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-emit.cpp') 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 -- cgit v1.2.3