summaryrefslogtreecommitdiff
path: root/tests/projects/cuda/console_2/xmake.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-18 08:28:35 +0800
committerOpportunityLiu <[email protected]>2019-06-18 08:28:35 +0800
commit9c8b83a61fce275edd3808c54f36ba368378fa5d (patch)
tree13c33fc09353745d706bfccbc7e7fba9531b24ce /tests/projects/cuda/console_2/xmake.lua
parent284857c1a43ce61a9f5433d88414e539f2bdc02a (diff)
Support clang as cuda compiler
Diffstat (limited to 'tests/projects/cuda/console_2/xmake.lua')
-rw-r--r--tests/projects/cuda/console_2/xmake.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/projects/cuda/console_2/xmake.lua b/tests/projects/cuda/console_2/xmake.lua
new file mode 100644
index 000000000..2c445d7e3
--- /dev/null
+++ b/tests/projects/cuda/console_2/xmake.lua
@@ -0,0 +1,19 @@
+
+-- add modes: debug and release
+add_rules("mode.debug", "mode.release")
+
+-- generate PTX code for the virtual architecture to guarantee compatibility
+add_cugencodes("compute_30")
+
+-- define target
+target("bin")
+
+ -- set kind
+ set_kind("binary")
+
+ add_cuflags("-rdc=true")
+
+ add_includedirs("inc")
+
+ -- add files
+ add_files("src/*.cu")