cmVS10CudaFlagTable.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. static cmVS7FlagTable cmVS10CudaFlagTable[] = {
  2. // Collect options meant for the host compiler.
  3. { "AdditionalCompilerOptions", "Xcompiler=", "Host compiler options", "",
  4. cmVS7FlagTable::UserValue | cmVS7FlagTable::SpaceAppendable },
  5. { "AdditionalCompilerOptions", "Xcompiler", "Host compiler options", "",
  6. cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SpaceAppendable },
  7. // Select the CUDA runtime library.
  8. { "CudaRuntime", "cudart=none", "No CUDA runtime library", "None", 0 },
  9. { "CudaRuntime", "cudart=shared", "Shared/dynamic CUDA runtime library",
  10. "Shared", 0 },
  11. { "CudaRuntime", "cudart=static", "Static CUDA runtime library", "Static",
  12. 0 },
  13. { "CudaRuntime", "cudart", "CUDA runtime library", "",
  14. cmVS7FlagTable::UserFollowing },
  15. // Capture arch/code arguments into temporaries for post-processing.
  16. { "cmake-temp-gencode", "gencode=", "", "",
  17. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  18. { "cmake-temp-gencode", "gencode", "", "",
  19. cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SemicolonAppendable },
  20. { "cmake-temp-gencode", "-generate-code=", "", "",
  21. cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  22. { "cmake-temp-gencode", "-generate-code", "", "",
  23. cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SemicolonAppendable },
  24. { "cmake-temp-code", "code=", "", "", cmVS7FlagTable::UserValue },
  25. { "cmake-temp-code", "code", "", "", cmVS7FlagTable::UserFollowing },
  26. { "cmake-temp-code", "-gpu-code=", "", "", cmVS7FlagTable::UserValue },
  27. { "cmake-temp-code", "-gpu-code", "", "", cmVS7FlagTable::UserFollowing },
  28. { "cmake-temp-arch", "arch=", "", "", cmVS7FlagTable::UserValue },
  29. { "cmake-temp-arch", "arch", "", "", cmVS7FlagTable::UserFollowing },
  30. { "cmake-temp-arch", "-gpu-architecture=", "", "",
  31. cmVS7FlagTable::UserValue },
  32. { "cmake-temp-arch", "-gpu-architecture", "", "",
  33. cmVS7FlagTable::UserFollowing },
  34. // Other flags.
  35. { "FastMath", "use_fast_math", "", "true", 0 },
  36. { "FastMath", "-use_fast_math", "", "true", 0 },
  37. { "GPUDebugInfo", "G", "", "true", 0 },
  38. { "GPUDebugInfo", "-device-debug", "", "true", 0 },
  39. { "HostDebugInfo", "g", "", "true", 0 },
  40. { "HostDebugInfo", "-debug", "", "true", 0 },
  41. { 0, 0, 0, 0, 0 }
  42. };