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
3eb49df7
Commit
3eb49df7
authored
Feb 07, 2017
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy a_dev to matrix in redist_band
parent
94b63fd7
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
src/redist_band.X90
src/redist_band.X90
+32
-32
No files found.
src/redist_band.X90
View file @
3eb49df7
...
...
@@ -114,38 +114,38 @@ subroutine redist_band_&
&PRECISION_SUFFIX &
)
!
if (useGPU) then
!
! copy a_dev to aMatrix
!
successCUDA = cuda_memcpy ( &
!
#if REALCASE == 1
!
loc(r_a), &
!
#endif
!
#if COMPLEXCASE == 1
!
loc(c_a(1,1)), &
!
#endif
!
a_dev, lda*matrixCols* &
!
#if REALCASE == 1
!
#ifdef DOUBLE_PRECISION_REAL
!
size_of_double_real_datatype, &
!
#else
!
size_of_single_real_datatype, &
!
#endif
!
#endif
!
#if COMPLEXCASE ==1
!
#ifdef DOUBLE_PRECISION_COMPLEX
!
size_of_double_complex_datatype,&
!
#else
!
size_of_single_complex_datatype,&
!
#endif
!
#endif
!
cudaMemcpyDeviceToHost)
!
if (.not.(successCUDA)) then
!
print *,"redist_band_&
!
&MATH_DATATYPE&
!
&: error in cudaMemcpy"
!
stop
!
endif
!
endif ! useGPU
if (useGPU) then
! copy a_dev to aMatrix
successCUDA = cuda_memcpy ( &
#if REALCASE == 1
loc(r_a), &
#endif
#if COMPLEXCASE == 1
loc(c_a(1,1)), &
#endif
a_dev, lda*matrixCols* &
#if REALCASE == 1
#ifdef DOUBLE_PRECISION_REAL
size_of_double_real_datatype, &
#else
size_of_single_real_datatype, &
#endif
#endif
#if COMPLEXCASE ==1
#ifdef DOUBLE_PRECISION_COMPLEX
size_of_double_complex_datatype,&
#else
size_of_single_complex_datatype,&
#endif
#endif
cudaMemcpyDeviceToHost)
if (.not.(successCUDA)) then
print *,"redist_band_&
&MATH_DATATYPE&
&: error in cudaMemcpy"
stop
endif
endif ! useGPU
call timer%start("mpi_communication")
call mpi_comm_rank(mpi_comm,my_pe,mpierr)
...
...
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