Skip to content

Commit

Permalink
Only warn for Cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Aug 4, 2020
1 parent de5a06a commit 82f87f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tutorial/05_parallel_for/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ if (("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "PGI") AND ("${CMAKE_CXX_COMPILER_I
target_link_options(ForParallelFor "-pgc++libs")
endif()
else()
if( Kokkos_ENABLE_CUDA )
message("Only PGI is supported for compiling fortran cuda code. Right now
we only accept building with PGI for both CXX and Fortran to avoid mixing
compiler families.\n Skip.")
return()
endif()
endif()
6 changes: 4 additions & 2 deletions tutorial/06_kokkos_parallel_for/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL "PGI")
endif()

else()
message("Only PGI is supported for compiling fortran cuda code.\n Skip.")
return()
if( Kokkos_ENABLE_CUDA )
message("Only PGI is supported for compiling fortran cuda code.\n Skip.")
return()
endif()
endif()

0 comments on commit 82f87f6

Please sign in to comment.