mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-06 22:55:08 +00:00
Complete cuda renaming
This commit is contained in:
@@ -548,7 +548,7 @@ program pdgenmv
|
||||
use psb_util_mod
|
||||
use psb_ext_mod
|
||||
#ifdef HAVE_GPU
|
||||
use psb_gpu_mod
|
||||
use psb_cuda_mod
|
||||
#endif
|
||||
#ifdef HAVE_RSB
|
||||
use psb_rsb_mod
|
||||
@@ -619,7 +619,7 @@ program pdgenmv
|
||||
call psb_info(ctxt,iam,np)
|
||||
|
||||
#ifdef HAVE_GPU
|
||||
call psb_gpu_init(ctxt)
|
||||
call psb_cuda_init(ctxt)
|
||||
#endif
|
||||
#ifdef HAVE_RSB
|
||||
call psb_rsb_init()
|
||||
@@ -641,7 +641,7 @@ program pdgenmv
|
||||
end if
|
||||
#ifdef HAVE_GPU
|
||||
write(*,*) 'Process ',iam,' running on device: ', psb_cuda_getDevice(),' out of', psb_cuda_getDeviceCount()
|
||||
write(*,*) 'Process ',iam,' device ', psb_cuda_getDevice(),' is a: ', trim(psb_gpu_DeviceName())
|
||||
write(*,*) 'Process ',iam,' device ', psb_cuda_getDevice(),' is a: ', trim(psb_cuda_DeviceName())
|
||||
#endif
|
||||
!
|
||||
! get parameters
|
||||
@@ -761,7 +761,7 @@ program pdgenmv
|
||||
call psb_barrier(ctxt)
|
||||
t1 = psb_wtime()
|
||||
call agpu%cscnv(info,mold=agmold)
|
||||
call psb_gpu_DeviceSync()
|
||||
call psb_cuda_DeviceSync()
|
||||
t2 = psb_Wtime() -t1
|
||||
call psb_amx(ctxt,t2)
|
||||
if (j==1) tcnvg1 = t2
|
||||
@@ -798,7 +798,7 @@ program pdgenmv
|
||||
end if
|
||||
|
||||
end do
|
||||
call psb_gpu_DeviceSync()
|
||||
call psb_cuda_DeviceSync()
|
||||
call psb_barrier(ctxt)
|
||||
tt2 = psb_wtime() - tt1
|
||||
call psb_amx(ctxt,tt2)
|
||||
@@ -825,7 +825,7 @@ program pdgenmv
|
||||
end if
|
||||
|
||||
end do
|
||||
call psb_gpu_DeviceSync()
|
||||
call psb_cuda_DeviceSync()
|
||||
call psb_barrier(ctxt)
|
||||
gt2 = psb_wtime() - gt1
|
||||
call psb_amx(ctxt,gt2)
|
||||
@@ -928,7 +928,7 @@ program pdgenmv
|
||||
#ifdef HAVE_GPU
|
||||
bdwdth = ngpu*ntests*nbytes/(gt2*1.d6)
|
||||
write(psb_out_unit,'("MBYTES/S sust. effective bandwidth (GPU) : ",F20.3)') bdwdth
|
||||
bdwdth = psb_gpu_MemoryPeakBandwidth()
|
||||
bdwdth = psb_cuda_MemoryPeakBandwidth()
|
||||
write(psb_out_unit,'("MBYTES/S peak bandwidth (GPU) : ",F20.3)') bdwdth
|
||||
#endif
|
||||
write(psb_out_unit,'("Storage type for DESC_A: ",a)') desc_a%indxmap%get_fmt()
|
||||
@@ -950,7 +950,7 @@ program pdgenmv
|
||||
goto 9999
|
||||
end if
|
||||
#ifdef HAVE_GPU
|
||||
call psb_gpu_exit()
|
||||
call psb_cuda_exit()
|
||||
#endif
|
||||
call psb_exit(ctxt)
|
||||
stop
|
||||
Reference in New Issue
Block a user