Skip to content

Commit

Permalink
Adding support for RTX20xx GPUs to build
Browse files Browse the repository at this point in the history
  • Loading branch information
acerjanic authored Mar 19, 2020
1 parent 07f42dc commit 15702e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()

set(CUDAVER 9.2)
set(CUDAVER 10.0)
set(PGI_YEAR 2019)
if(OPENACC_GPU)
find_path(cuFFT_INCLUDE_DIR cufft.h HINTS $ENV{PGI}/linux86-64/${PGI_YEAR}/cuda/${CUDAVER}/include)
Expand Down Expand Up @@ -123,7 +123,7 @@ else()
add_definitions(-DBOOST_NO_ALIGNMENT)
if(OPENACC_GPU)
add_definitions(-DOPENACC_GPU)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mp -tp=px -Mnollvm -Mcuda -Minfo=accel -fast -acc -ta=tesla:cc35,cc60,cuda${CUDAVER},flushz -pgf90libs")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mp -tp=px -Mnollvm -Mcuda -Minfo=accel -fast -acc -ta=tesla:cc35,cc60,cc75,cuda${CUDAVER},flushz -pgf90libs")
elseif(OPENACC_MP)
add_definitions(-DOPENACC_MP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Mnollvm -O1 -Minfo=accel -acc -ta=multicore -pgf90libs")
Expand Down

0 comments on commit 15702e9

Please sign in to comment.