Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
f84fed6e
Commit
f84fed6e
authored
Apr 29, 2013
by
Yutong Zhao
Browse files
small typo
parent
e7e6eebc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/opencl/src/OpenCLFFT3D.cpp
platforms/opencl/src/OpenCLFFT3D.cpp
+1
-1
platforms/opencl/src/kernels/fft.cl
platforms/opencl/src/kernels/fft.cl
+1
-1
No files found.
platforms/opencl/src/OpenCLFFT3D.cpp
View file @
f84fed6e
...
...
@@ -228,7 +228,7 @@ cl::Kernel OpenCLFFT3D::createKernel(int xsize, int ysize, int zsize, int& threa
source
<<
"out[y*(ZSIZE*XSIZE)+z*XSIZE+x] = data"
<<
(
stage
%
2
)
<<
"[z];
\n
"
;
}
else
{
source
<<
"if (index < XSIZE*
Z
SIZE)
\n
"
;
source
<<
"if (index < XSIZE*
Y
SIZE)
\n
"
;
source
<<
"out[y*(ZSIZE*XSIZE)+(get_local_id(0)%ZSIZE)*XSIZE+x] = data"
<<
(
stage
%
2
)
<<
"[get_local_id(0)];
\n
"
;
}
source
<<
"barrier(CLK_GLOBAL_MEM_FENCE);"
;
...
...
platforms/opencl/src/kernels/fft.cl
View file @
f84fed6e
...
...
@@ -20,7 +20,7 @@ __kernel void execFFT(__global const real2* restrict in, __global real2* restric
for
(
int
z
=
get_local_id
(
0
)
; z < ZSIZE; z += get_local_size(0))
data0[z]
=
in[x*
(
YSIZE*ZSIZE
)
+y*ZSIZE+z]
;
#
else
if
(
index
<
XSIZE*
Z
SIZE
)
if
(
index
<
XSIZE*
Y
SIZE
)
data0[get_local_id
(
0
)
]
=
in[x*
(
YSIZE*ZSIZE
)
+y*ZSIZE+get_local_id
(
0
)
%ZSIZE]
;
#
endif
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
...
...
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