From ea7690558bca71ce3a9453adff4e0135352a352f Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 30 Mar 2020 19:23:09 -0400 Subject: CUDA version handling (#1301) * render feature for CUDA compute model. * Use SemanticVersion type. * Enable CUDA wave tests that require CUDA SM 7.0. Provide mechanism for DownstreamCompiler to specify version numbers. * Enabled wave-equality.slang * Make CUDA SM version major version not just a single digit. * Fix assert. * DownstreamCompiler::Version -> CapabilityVersion --- source/core/slang-downstream-compiler.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/core/slang-downstream-compiler.h') diff --git a/source/core/slang-downstream-compiler.h b/source/core/slang-downstream-compiler.h index f9e33ed6c..3ffa32097 100644 --- a/source/core/slang-downstream-compiler.h +++ b/source/core/slang-downstream-compiler.h @@ -7,6 +7,7 @@ #include "slang-process-util.h" #include "slang-platform.h" +#include "slang-semantic-version.h" #include "slang-io.h" @@ -207,6 +208,16 @@ public: String value; }; + struct CapabilityVersion + { + enum class Kind + { + CUDASM, ///< What the version is for + }; + Kind kind; + SemanticVersion version; + }; + struct CompileOptions { typedef uint32_t Flags; @@ -247,6 +258,8 @@ public: List includePaths; List libraryPaths; + + List requiredCapabilityVersions; }; typedef uint32_t ProductFlags; -- cgit v1.2.3