Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
6f68a719
Commit
6f68a719
authored
Apr 19, 2018
by
Pavel Kus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing redundant piece of gpu initialization
parent
ededb2ac
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
47 deletions
+0
-47
src/elpa1/elpa1_template.F90
src/elpa1/elpa1_template.F90
+0
-24
src/elpa2/elpa2_template.F90
src/elpa2/elpa2_template.F90
+0
-23
No files found.
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