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
6f68a719
Commit
6f68a719
authored
Apr 19, 2018
by
Pavel Kus
Browse files
removing redundant piece of gpu initialization
parent
ededb2ac
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/elpa1/elpa1_template.F90
View file @
6f68a719
...
...
@@ -222,30 +222,6 @@ function elpa_solve_evp_&
success
=
.false.
return
endif
else
! check whether set by environment variable
call
obj
%
get
(
"gpu"
,
gpu
,
error
)
if
(
error
.ne.
ELPA_OK
)
then
print
*
,
"Problem setting option. Aborting..."
stop
endif
do_useGPU
=
gpu
==
1
if
(
do_useGPU
)
then
if
(
check_for_gpu
(
my_pe
,
numberOfGPUDevices
,
wantDebug
=
wantDebug
))
then
! set the neccessary parameters
cudaMemcpyHostToDevice
=
cuda_memcpyHostToDevice
()
cudaMemcpyDeviceToHost
=
cuda_memcpyDeviceToHost
()
cudaMemcpyDeviceToDevice
=
cuda_memcpyDeviceToDevice
()
cudaHostRegisterPortable
=
cuda_hostRegisterPortable
()
cudaHostRegisterMapped
=
cuda_hostRegisterMapped
()
else
print
*
,
"GPUs are requested but not detected! Aborting..."
success
=
.false.
return
endif
endif
endif
! allocate a dummy q_intern, if eigenvectors should not be commputed and thus q is NOT present
...
...
src/elpa2/elpa2_template.F90
View file @
6f68a719
...
...
@@ -327,29 +327,6 @@
success
=
.false.
return
endif
else
! check whether set by environment variable
call
obj
%
get
(
"gpu"
,
gpu
,
error
)
if
(
error
.ne.
ELPA_OK
)
then
print
*
,
"Problem getting option. Aborting..."
stop
endif
do_useGPU
=
gpu
==
1
if
(
do_useGPU
)
then
if
(
check_for_gpu
(
my_pe
,
numberOfGPUDevices
,
wantDebug
=
wantDebug
))
then
! set the neccessary parameters
cudaMemcpyHostToDevice
=
cuda_memcpyHostToDevice
()
cudaMemcpyDeviceToHost
=
cuda_memcpyDeviceToHost
()
cudaMemcpyDeviceToDevice
=
cuda_memcpyDeviceToDevice
()
cudaHostRegisterPortable
=
cuda_hostRegisterPortable
()
cudaHostRegisterMapped
=
cuda_hostRegisterMapped
()
else
print
*
,
"GPUs are requested but not detected! Aborting..."
success
=
.false.
return
endif
endif
endif
! check consistency between request for GPUs and defined kernel
...
...
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