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
98173c60
Unverified
Commit
98173c60
authored
Nov 13, 2025
by
Evan Pretti
Committed by
GitHub
Nov 13, 2025
Browse files
Workaround for Intel CPU OpenCL 2025.3 (#5137)
parent
2fbed592
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
platforms/opencl/src/OpenCLFFT3D.cpp
platforms/opencl/src/OpenCLFFT3D.cpp
+2
-0
platforms/opencl/tests/TestOpenCLFFT.cpp
platforms/opencl/tests/TestOpenCLFFT.cpp
+6
-0
No files found.
platforms/opencl/src/OpenCLFFT3D.cpp
View file @
98173c60
...
@@ -59,6 +59,8 @@ OpenCLFFT3D::OpenCLFFT3D(OpenCLContext& context, int xsize, int ysize, int zsize
...
@@ -59,6 +59,8 @@ OpenCLFFT3D::OpenCLFFT3D(OpenCLContext& context, int xsize, int ysize, int zsize
if
(
platformVendor
.
size
()
>=
5
&&
platformVendor
.
substr
(
0
,
5
)
==
"Intel"
)
{
if
(
platformVendor
.
size
()
>=
5
&&
platformVendor
.
substr
(
0
,
5
)
==
"Intel"
)
{
// Intel's OpenCL uses low accuracy trig functions, so tell VkFFT to use lookup tables instead.
// Intel's OpenCL uses low accuracy trig functions, so tell VkFFT to use lookup tables instead.
config
.
useLUT
=
1
;
config
.
useLUT
=
1
;
// Version 2025.3 of Intel's OpenCL generates incorrect results when Y and Z sizes are 33 or 39; this is a workaround.
config
.
fixMinRaderPrimeMult
=
11
;
}
}
VkFFTResult
result
=
initializeVkFFT
(
&
app
,
config
);
VkFFTResult
result
=
initializeVkFFT
(
&
app
,
config
);
if
(
result
!=
VKFFT_SUCCESS
)
if
(
result
!=
VKFFT_SUCCESS
)
...
...
platforms/opencl/tests/TestOpenCLFFT.cpp
View file @
98173c60
...
@@ -122,6 +122,9 @@ int main(int argc, char* argv[]) {
...
@@ -122,6 +122,9 @@ int main(int argc, char* argv[]) {
testTransform
<
mm_double2
>
(
true
,
25
,
28
,
25
);
testTransform
<
mm_double2
>
(
true
,
25
,
28
,
25
);
testTransform
<
mm_double2
>
(
true
,
25
,
25
,
28
);
testTransform
<
mm_double2
>
(
true
,
25
,
25
,
28
);
testTransform
<
mm_double2
>
(
true
,
21
,
25
,
27
);
testTransform
<
mm_double2
>
(
true
,
21
,
25
,
27
);
testTransform
<
mm_double2
>
(
true
,
32
,
33
,
33
);
testTransform
<
mm_double2
>
(
true
,
32
,
33
,
39
);
testTransform
<
mm_double2
>
(
true
,
32
,
39
,
39
);
}
}
else
{
else
{
testTransform
<
mm_float2
>
(
false
,
28
,
25
,
30
);
testTransform
<
mm_float2
>
(
false
,
28
,
25
,
30
);
...
@@ -129,6 +132,9 @@ int main(int argc, char* argv[]) {
...
@@ -129,6 +132,9 @@ int main(int argc, char* argv[]) {
testTransform
<
mm_float2
>
(
true
,
25
,
28
,
25
);
testTransform
<
mm_float2
>
(
true
,
25
,
28
,
25
);
testTransform
<
mm_float2
>
(
true
,
25
,
25
,
28
);
testTransform
<
mm_float2
>
(
true
,
25
,
25
,
28
);
testTransform
<
mm_float2
>
(
true
,
21
,
25
,
27
);
testTransform
<
mm_float2
>
(
true
,
21
,
25
,
27
);
testTransform
<
mm_float2
>
(
true
,
32
,
33
,
33
);
testTransform
<
mm_float2
>
(
true
,
32
,
33
,
39
);
testTransform
<
mm_float2
>
(
true
,
32
,
39
,
39
);
}
}
}
}
catch
(
const
exception
&
e
)
{
catch
(
const
exception
&
e
)
{
...
...
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