mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Tests: Fix Cuda test project names
Make them match what `ADD_TEST_MACRO` gives to ctest as the project name to build so that the `.sln` file will be found.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaComplex CXX CUDA)
|
||||
project (Complex CXX CUDA)
|
||||
#Goal for this example:
|
||||
|
||||
#build a cpp dynamic library base
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaConsumeCompileFeatures CXX CUDA)
|
||||
project (ConsumeCompileFeatures CXX CUDA)
|
||||
#Goal for this example:
|
||||
|
||||
#build a c++11 library that express a c++11 public compile feature
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project(CudaComplex CXX CUDA)
|
||||
project(MixedStandardLevels CXX CUDA)
|
||||
|
||||
string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=compute_30")
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaObjectLibrary CUDA CXX)
|
||||
project (ObjectLibrary CUDA CXX)
|
||||
#Goal for this example:
|
||||
#
|
||||
#Build C++ and CUDA object files and than use them to make an executable
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project(CudaComplex CUDA C)
|
||||
project(WithC CUDA C)
|
||||
|
||||
string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=compute_30")
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaOnlyCircularLinkLine CUDA)
|
||||
project (CircularLinkLine CUDA)
|
||||
|
||||
#Goal for this example:
|
||||
# Verify that we de-duplicate the device link line
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaOnlyEnableStandard CUDA)
|
||||
project (EnableStandard CUDA)
|
||||
|
||||
#Goal for this example:
|
||||
#build cuda sources that require C++11 to be enabled.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project (CudaOnlyExportPTX CUDA)
|
||||
project (ExportPTX CUDA)
|
||||
|
||||
#Goal for this example:
|
||||
# How to generate PTX files instead of OBJECT files
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaOnlGPUDebugFlag CUDA)
|
||||
project (GPUDebugFlag CUDA)
|
||||
|
||||
#Goal for this example:
|
||||
#verify that -G enables gpu debug flags
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(CudaOnlyLinkSystemDeviceLibraries CUDA)
|
||||
project(LinkSystemDeviceLibraries CUDA)
|
||||
|
||||
string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_35,code=compute_35 -gencode arch=compute_35,code=sm_35")
|
||||
set(CMAKE_CUDA_STANDARD 11)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.11)
|
||||
project (CudaOnlyPDB CUDA)
|
||||
project (PDB CUDA)
|
||||
|
||||
add_executable(CudaOnlyPDB main.cu)
|
||||
set_target_properties(CudaOnlyPDB PROPERTIES
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaOnlyResolveDeviceSymbols CUDA)
|
||||
project (ResolveDeviceSymbols CUDA)
|
||||
|
||||
# Find nm and dumpbin
|
||||
if(CMAKE_NM)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaOnlySeparateCompilation CUDA)
|
||||
project (SeparateCompilation CUDA)
|
||||
|
||||
#Goal for this example:
|
||||
#Build a static library that defines multiple methods and kernels that
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project (CudaOnlyWithDefs CUDA)
|
||||
project (WithDefs CUDA)
|
||||
|
||||
#verify that we can pass explicit cuda arch flags
|
||||
string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=compute_30")
|
||||
|
||||
Reference in New Issue
Block a user