Skip to content

Commit 52c5608

Browse files
committed
Comment out calls to cudaGetErrorString
1 parent 5e369c3 commit 52c5608

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/include/macros.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@
4040
istat = cudaMemAdvise( c_devloc(${arg}$), SIZEOF(${arg}$), cudaMemAdviseSetPreferredLocation, 0 )
4141
if (istat /= cudaSuccess) then
4242
write(*,"('Error code: ',I0, ': ')") istat
43-
write(*,*) cudaGetErrorString(istat)
43+
!write(*,*) cudaGetErrorString(istat)
4444
endif
4545
! set accessed by CPU
4646
istat = cudaMemAdvise( c_devloc(${arg}$), SIZEOF(${arg}$), cudaMemAdviseSetAccessedBy, cudaCpuDeviceId )
4747
if (istat /= cudaSuccess) then
4848
write(*,"('Error code: ',I0, ': ')") istat
49-
write(*,*) cudaGetErrorString(istat)
49+
!write(*,*) cudaGetErrorString(istat)
5050
endif
5151
! prefetch to GPU - physically populate memory pages
5252
istat = cudaMemPrefetchAsync( c_devloc(${arg}$), SIZEOF(${arg}$), 0, 0 )
5353
if (istat /= cudaSuccess) then
5454
write(*,"('Error code: ',I0, ': ')") istat
55-
write(*,*) cudaGetErrorString(istat)
55+
!write(*,*) cudaGetErrorString(istat)
5656
endif
5757
#:endfor
5858
end if

0 commit comments

Comments
 (0)