Skip to content

Commit

Permalink
add CMake presets
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig committed Dec 6, 2023
1 parent 24f4be5 commit f387bd5
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ jobs.yml
# pipenv files
Pipfile
Pipfile.lock

# user specific cmake preset settings
CMakeUserPresets.json
102 changes: 102 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "develop",
"description": "enable tests and examples",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"alpaka_BUILD_EXAMPLES": {
"type": "BOOL",
"value": "ON"
},
"BUILD_TESTING": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "serial-cpu-gcc",
"inherits": "develop",
"cacheVariables": {
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "g++"
},
"alpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "serial-cpu-clang",
"inherits": "develop",
"cacheVariables": {
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "clang++"
},
"alpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "hip",
"inherits": "develop",
"cacheVariables": {
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "hipcc"
},
"alpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE": {
"type": "BOOL",
"value": "ON"
},
"alpaka_ACC_GPU_HIP_ENABLE": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "sycl-intel-gpu",
"inherits": "develop",
"cacheVariables": {
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "icpx"
},
"alpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE": {
"type": "BOOL",
"value": "ON"
},
"alpaka_ACC_SYCL_ENABLE": {
"type": "BOOL",
"value": "ON"
},
"alpaka_SYCL_ONEAPI_GPU": {
"type": "BOOL",
"value": "ON"
},
"alpaka_SYCL_ONEAPI_GPU_DEVICES": {
"type": "STRING",
"value": "spir64"
},
"alpaka_DISABLE_VENDOR_RNG": {
"type": "BOOL",
"value": "ON"
}
}
}
]
}

0 comments on commit f387bd5

Please sign in to comment.