|
40 | 40 | istat = cudaMemAdvise( c_devloc(${arg}$), SIZEOF(${arg}$), cudaMemAdviseSetPreferredLocation, 0 ) |
41 | 41 | if (istat /= cudaSuccess) then |
42 | 42 | write(*,"('Error code: ',I0, ': ')") istat |
43 | | - write(*,*) cudaGetErrorString(istat) |
| 43 | + !write(*,*) cudaGetErrorString(istat) |
44 | 44 | endif |
45 | 45 | ! set accessed by CPU |
46 | 46 | istat = cudaMemAdvise( c_devloc(${arg}$), SIZEOF(${arg}$), cudaMemAdviseSetAccessedBy, cudaCpuDeviceId ) |
47 | 47 | if (istat /= cudaSuccess) then |
48 | 48 | write(*,"('Error code: ',I0, ': ')") istat |
49 | | - write(*,*) cudaGetErrorString(istat) |
| 49 | + !write(*,*) cudaGetErrorString(istat) |
50 | 50 | endif |
51 | 51 | ! prefetch to GPU - physically populate memory pages |
52 | 52 | istat = cudaMemPrefetchAsync( c_devloc(${arg}$), SIZEOF(${arg}$), 0, 0 ) |
53 | 53 | if (istat /= cudaSuccess) then |
54 | 54 | write(*,"('Error code: ',I0, ': ')") istat |
55 | | - write(*,*) cudaGetErrorString(istat) |
| 55 | + !write(*,*) cudaGetErrorString(istat) |
56 | 56 | endif |
57 | 57 | #:endfor |
58 | 58 | end if |
|
0 commit comments