Skip to content

Commit a1ed1a2

Browse files
committed
Reduce registers
1 parent 88c0a11 commit a1ed1a2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ function(MFC_SETUP_TARGET)
499499
endforeach()
500500

501501
target_compile_options(${a_target}
502-
PRIVATE -gpu=keep,ptxinfo,lineinfo
502+
PRIVATE -gpu=keep,ptxinfo,lineinfo -gpu=maxregcount:165
503503
)
504504

505505
if (MFC_Fastmath)

src/simulation/m_igr.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module m_igr
2727
#ifdef __NVCOMPILER_GPU_UNIFIED_MEM
2828
integer, dimension(3) :: nv_uvm_temp_on_gpu
2929
real(wp), pointer, contiguous, dimension(:, :, :) :: jac, jac_rhs, jac_old
30+
$:GPU_DECLARE(create='[jac, jac_rhs, jac_old]')
3031
real(wp), allocatable, dimension(:, :, :), pinned, target :: jac_host
3132
real(wp), allocatable, dimension(:, :, :), pinned, target :: jac_rhs_host
3233
real(wp), allocatable, dimension(:, :, :), pinned, target :: jac_old_host

0 commit comments

Comments
 (0)