Skip to content

Commit

Permalink
Remove CUDA support
Browse files Browse the repository at this point in the history
  • Loading branch information
matyas-streamhpc committed Jul 29, 2024
1 parent 0b21765 commit 02a08e6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
5 changes: 3 additions & 2 deletions Tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ project(Tutorials LANGUAGES CXX)
file(RELATIVE_PATH folder_bin ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${folder_bin})

add_subdirectory(reduction)

if(NOT ("${GPU_RUNTIME}" STREQUAL "CUDA"))
add_subdirectory(reduction)
endif()
9 changes: 5 additions & 4 deletions Tutorials/Reduction/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "nvidia")
cmake_minimum_required(VERSION 3.25.2)
else()
cmake_minimum_required(VERSION 3.21)
if(NOT "${GPU_RUNTIME}" STREQUAL "CUDA")
message(STATUS "Reduction tutorial does not support the CUDA runtime")
return()
endif()

cmake_minimum_required(VERSION 3.21)

project(Reduction LANGUAGES CXX)

file(RELATIVE_PATH folder_bin ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
Expand Down
9 changes: 5 additions & 4 deletions Tutorials/Reduction/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "nvidia")
cmake_minimum_required(VERSION 3.25.2)
else()
cmake_minimum_required(VERSION 3.21)
if(NOT "${GPU_RUNTIME}" STREQUAL "CUDA")
message(STATUS "Reduction tutorial does not support the CUDA runtime")
return()
endif()

cmake_minimum_required(VERSION 3.21)

project(reduction_benchmarks LANGUAGES CXX)

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "amd")
Expand Down
9 changes: 5 additions & 4 deletions Tutorials/Reduction/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "nvidia")
cmake_minimum_required(VERSION 3.25.2)
else()
cmake_minimum_required(VERSION 3.21)
if(NOT "${GPU_RUNTIME}" STREQUAL "CUDA")
message(STATUS "Reduction tutorial does not support the CUDA runtime")
return()
endif()

cmake_minimum_required(VERSION 3.21)

project(reduction_examples LANGUAGES CXX)

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "amd")
Expand Down
9 changes: 5 additions & 4 deletions Tutorials/Reduction/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "nvidia")
cmake_minimum_required(VERSION 3.25.2)
else()
cmake_minimum_required(VERSION 3.21)
if(NOT "${GPU_RUNTIME}" STREQUAL "CUDA")
message(STATUS "Reduction tutorial does not support the CUDA runtime")
return()
endif()

cmake_minimum_required(VERSION 3.21)

project(reduction_tests LANGUAGES CXX)

if(ROCM_EXAMPLES_HIP_PLATFORM STREQUAL "amd")
Expand Down

0 comments on commit 02a08e6

Please sign in to comment.