module load oneapi should do the trick on JLSE (and nothing required on sunspot).
This code needs to use the mkl libraries. If I don’t source
/soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/setvars.sh, then it can't find the mkl libraries and I get the error
/usr/bin/ld: cannot find -lonemkl
If I DO source it, then I get the Undefine error, but not the missing library.
Am I sourcing the wrong setup file?
thanks, Charles.
--I’m getting this odd error when compiling some SYCL code:
In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl.hpp:16: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/backend.hpp:18: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/detail/backend_traits_opencl.hpp:26: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/queue.hpp:20: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/handler.hpp:14: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/detail/cg.hpp:27: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/detail/cg_types.hpp:32: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/nd_item.hpp:33: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/2022.2.0/linux/bin-llvm/../include/sycl/CL/sycl/sub_group.hpp:12: In file included from /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/trunk-20221014/compiler/linux/include/sycl/ext/oneapi/sub_group.hpp:36: /soft/restricted/CNDA/sdk/2022.10.15.001/oneapi/compiler/trunk-20221014/compiler/linux/include/sycl/types.hpp:29:2: error: "Undefine __HAS_EXT_VECTOR_TYPE__ macro" #error "Undefine __HAS_EXT_VECTOR_TYPE__ macro"Any ideas how to deal with it?
thanks, Charles.
Charles Leggett <CGLeggett@lbl.gov>
Lawrence Berkeley National Lab
1 Cyclotron Road, MS 50F-1650, Berkeley, CA 94720
tel: 510.495.2930