Closed balay closed 11 months ago
Is the C++ compiler dpcpp
or icpx
?
Is the C++ compiler
dpcpp
oricpx
?
I'd guess guess that it's icpx
and we need to add -fsycl
to the C++ flags.
yeah icpx
. The attached build log has the details
include <CL/sycl.hpp>
Should be
#include <sycl/sycl.hpp>
for any recent oneAPI version.
Looks like it's using icx
for the C and C++ compiler. We plan on updating the includes to sycl/sycl.hpp
but I believe CL/sycl.hpp
still works and adding -fsycl
to the C++ flags should fix issue.
This will be fixed with https://github.com/spack/spack/pull/40845
https://github.com/spack/spack/pull/40845 is now merged, xsdk+sycl is now updated to build sundials+sycl
spack-build-out.txt
Note I had a different error without
cxxstd=17