Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
libclfft
Commits
8f79fa0b
Commit
8f79fa0b
authored
Jan 12, 2011
by
Oliver Bock
Browse files
Fixed compiler warnings
parent
a36e2db1
Changes
2
Hide whitespace changes
Inline
Side-by-side
example/main.cpp
View file @
8f79fa0b
...
...
@@ -48,15 +48,8 @@ int runTest(clFFT_Dim3 n, int batchSize, clFFT_Direction dir, clFFT_Dimension di
{
cl_int
err
=
CL_SUCCESS
;
int
iter
;
double
t
;
uint64_t
t0
,
t1
;
int
mx
=
log2
(
n
.
x
);
int
my
=
log2
(
n
.
y
);
int
mz
=
log2
(
n
.
z
);
int
length
=
n
.
x
*
n
.
y
*
n
.
z
*
batchSize
;
double
gflops
=
5e-9
*
((
double
)
mx
+
(
double
)
my
+
(
double
)
mz
)
*
(
double
)
n
.
x
*
(
double
)
n
.
y
*
(
double
)
n
.
z
*
(
double
)
batchSize
*
(
double
)
numIter
;
clFFT_SplitComplex
data_i_split
=
(
clFFT_SplitComplex
)
{
NULL
,
NULL
};
clFFT_SplitComplex
data_cl_split
=
(
clFFT_SplitComplex
)
{
NULL
,
NULL
};
...
...
src/fft_execute.cpp
View file @
8f79fa0b
...
...
@@ -85,7 +85,7 @@ clFFT_ExecuteInterleaved( cl_command_queue queue, clFFT_Plan Plan, cl_int batchS
cl_int
err
;
size_t
gWorkItems
,
lWorkItems
;
int
inPlaceDone
;
int
inPlaceDone
=
0
;
cl_int
isInPlace
=
data_in
==
data_out
?
1
:
0
;
...
...
@@ -183,7 +183,7 @@ clFFT_ExecutePlannar( cl_command_queue queue, clFFT_Plan Plan, cl_int batchSize,
cl_int
err
;
size_t
gWorkItems
,
lWorkItems
;
int
inPlaceDone
;
int
inPlaceDone
=
0
;
cl_int
isInPlace
=
((
data_in_real
==
data_out_real
)
&&
(
data_in_imag
==
data_out_imag
))
?
1
:
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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