summaryrefslogtreecommitdiff
path: root/xmake/repository/templates/cuda/console/xmake.lua
blob: fb393bab791255ecd1bf9305de5a52a6597edd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
add_rules("mode.debug", "mode.release")

target("${TARGET_NAME}")
    set_kind("binary")
    add_files("src/*.cu")

    -- generate SASS code for SM architecture of current host
    add_cugencodes("native")

    -- generate PTX code for the virtual architecture to guarantee compatibility
    add_cugencodes("compute_75")

    -- -- generate SASS code for each SM architecture
    -- add_cugencodes("sm_75", "sm_80", "sm_89", "sm_90", "sm_100")

    -- -- generate PTX code from the highest SM architecture to guarantee forward-compatibility
    -- add_cugencodes("compute_100")

${FAQ}