Skip to content

Commit

Permalink
Simplify -ta option for nvfortran
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherwharrop-noaa committed Aug 13, 2024
1 parent 746371e commit 73dac2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ref/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ add_executable( gf_kernel_cpu ${gf_kernel_common_files} )

if(ENABLE_GPU)
add_executable( gf_kernel_gpu ${gf_kernel_common_files} )
target_compile_options(gf_kernel_gpu PUBLIC ${OpenACC_Fortran_OPTIONS}:cc${CUDA_ARCH_LIST},cuda${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR})
target_link_options(gf_kernel_gpu PUBLIC ${OpenACC_Fortran_OPTIONS}:cc${CUDA_ARCH_LIST})
#target_compile_options(gf_kernel_gpu PUBLIC ${OpenACC_Fortran_OPTIONS}:cc${CUDA_ARCH_LIST},cuda${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR})
#target_link_options(gf_kernel_gpu PUBLIC ${OpenACC_Fortran_OPTIONS}:cc${CUDA_ARCH_LIST})
target_compile_options(gf_kernel_gpu PUBLIC ${OpenACC_Fortran_OPTIONS})
target_link_options(gf_kernel_gpu PUBLIC ${OpenACC_Fortran_OPTIONS})
endif()

if(OpenMP_FOUND)
Expand Down

0 comments on commit 73dac2c

Please sign in to comment.