Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
7eb78f22
Commit
7eb78f22
authored
Apr 15, 2021
by
Andreas Marek
Browse files
Fix typo in preprocessor flag
parent
979c5985
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/GPU/check_for_gpu.F90
View file @
7eb78f22
...
...
@@ -219,7 +219,7 @@ module mod_check_for_gpu
endif
deviceNumber
=
mod
(
myid
,
numberOfDevices
)
#ifdef WITH_N
I
VDIA_GPU_VERSION
#ifdef WITH_NV
I
DIA_GPU_VERSION
success
=
cuda_setdevice
(
deviceNumber
)
#endif
#ifdef WITH_AMD_GPU_VERSION
...
...
@@ -227,7 +227,7 @@ module mod_check_for_gpu
#endif
if
(
.not.
(
success
))
then
#ifdef WITH_N
I
VDIA_GPU_VERSION
#ifdef WITH_NV
I
DIA_GPU_VERSION
print
*
,
"Cannot set CudaDevice"
#endif
#ifdef WITH_AMD_GPU_VERSION
...
...
@@ -239,14 +239,14 @@ module mod_check_for_gpu
print
'(3(a,i0))'
,
'MPI rank '
,
myid
,
' uses GPU #'
,
deviceNumber
endif
#ifdef WITH_N
I
VDIA_GPU_VERSION
#ifdef WITH_NV
I
DIA_GPU_VERSION
success
=
cublas_create
(
cublasHandle
)
#endif
#ifdef WITH_AMD_GPU_VERSION
success
=
rocblas_create
(
rocblasHandle
)
#endif
if
(
.not.
(
success
))
then
#ifdef WITH_N
I
VDIA_GPU_VERSION
#ifdef WITH_NV
I
DIA_GPU_VERSION
print
*
,
"Cannot create cublas handle"
#endif
#ifdef WITH_AMD_GPU_VERSION
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment