summaryrefslogtreecommitdiff
path: root/Source/cmVS10CudaFlagTable.h
blob: da19d649b3ee29008e7a44da745b2137c3176e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
static cmVS7FlagTable cmVS10CudaFlagTable[] = {
  // Collect options meant for the host compiler.
  { "AdditionalCompilerOptions", "Xcompiler=", "Host compiler options", "",
    cmVS7FlagTable::UserValue | cmVS7FlagTable::SpaceAppendable },
  { "AdditionalCompilerOptions", "Xcompiler", "Host compiler options", "",
    cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SpaceAppendable },

  // Select the CUDA runtime library.
  { "CudaRuntime", "cudart=none", "No CUDA runtime library", "None", 0 },
  { "CudaRuntime", "cudart=shared", "Shared/dynamic CUDA runtime library",
    "Shared", 0 },
  { "CudaRuntime", "cudart=static", "Static CUDA runtime library", "Static",
    0 },
  { "CudaRuntime", "cudart", "CUDA runtime library", "",
    cmVS7FlagTable::UserFollowing },

  // Capture arch/code arguments into temporaries for post-processing.
  { "cmake-temp-gencode", "gencode=", "", "",
    cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  { "cmake-temp-gencode", "gencode", "", "",
    cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SemicolonAppendable },
  { "cmake-temp-gencode", "-generate-code=", "", "",
    cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  { "cmake-temp-gencode", "-generate-code", "", "",
    cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SemicolonAppendable },

  { "cmake-temp-code", "code=", "", "", cmVS7FlagTable::UserValue },
  { "cmake-temp-code", "code", "", "", cmVS7FlagTable::UserFollowing },
  { "cmake-temp-code", "-gpu-code=", "", "", cmVS7FlagTable::UserValue },
  { "cmake-temp-code", "-gpu-code", "", "", cmVS7FlagTable::UserFollowing },

  { "cmake-temp-arch", "arch=", "", "", cmVS7FlagTable::UserValue },
  { "cmake-temp-arch", "arch", "", "", cmVS7FlagTable::UserFollowing },
  { "cmake-temp-arch", "-gpu-architecture=", "", "",
    cmVS7FlagTable::UserValue },
  { "cmake-temp-arch", "-gpu-architecture", "", "",
    cmVS7FlagTable::UserFollowing },

  // Other flags.

  { "FastMath", "use_fast_math", "", "true", 0 },
  { "FastMath", "-use_fast_math", "", "true", 0 },

  { "GPUDebugInfo", "G", "", "true", 0 },
  { "GPUDebugInfo", "-device-debug", "", "true", 0 },

  { "HostDebugInfo", "g", "", "true", 0 },
  { "HostDebugInfo", "-debug", "", "true", 0 },

  { 0, 0, 0, 0, 0 }
};