Skip to content
GitLab
Menu
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
4d841334
Commit
4d841334
authored
Nov 24, 2016
by
Andreas Marek
Browse files
Abort if GPUs are requested but not detected
parent
3be90dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/elpa1.F90
View file @
4d841334
...
...
@@ -637,7 +637,10 @@ function elpa_solve_evp_real_1stage_double(na, nev, a, lda, ev, q, ldq, nblk, &
cudaMemcpyDeviceToDevice
=
cuda_memcpyDeviceToDevice
()
cudaHostRegisterPortable
=
cuda_hostRegisterPortable
()
cudaHostRegisterMapped
=
cuda_hostRegisterMapped
()
else
print
*
,
"GPUs are requested but not detected! Aborting..."
success
=
.false.
return
endif
endif
else
...
...
@@ -813,7 +816,10 @@ function elpa_solve_evp_real_1stage_single(na, nev, a, lda, ev, q, ldq, nblk, ma
cudaMemcpyDeviceToDevice
=
cuda_memcpyDeviceToDevice
()
cudaHostRegisterPortable
=
cuda_hostRegisterPortable
()
cudaHostRegisterMapped
=
cuda_hostRegisterMapped
()
else
print
*
,
"GPUs are requested but not detected! Aborting..."
success
=
.false.
return
endif
endif
else
...
...
@@ -991,7 +997,10 @@ function elpa_solve_evp_complex_1stage_double(na, nev, a, lda, ev, q, ldq, nblk,
cudaMemcpyDeviceToDevice
=
cuda_memcpyDeviceToDevice
()
cudaHostRegisterPortable
=
cuda_hostRegisterPortable
()
cudaHostRegisterMapped
=
cuda_hostRegisterMapped
()
else
print
*
,
"GPUs are requested but not detected! Aborting..."
success
=
.false.
return
endif
endif
else
...
...
@@ -1179,7 +1188,10 @@ function elpa_solve_evp_complex_1stage_single(na, nev, a, lda, ev, q, ldq, nblk,
cudaMemcpyDeviceToDevice
=
cuda_memcpyDeviceToDevice
()
cudaHostRegisterPortable
=
cuda_hostRegisterPortable
()
cudaHostRegisterMapped
=
cuda_hostRegisterMapped
()
else
print
*
,
"GPUs are requested but not detected! Aborting..."
success
=
.false.
return
endif
endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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