Re: [Ecp-aurora-sdk-discuss] Undefine __HAS_EXT_VECTOR_TYPE__ macro
Can you provide us small reproducer? Sycl and oneMKL work in our test-case. You should not need to load any env, module load oneapi should do the trick on JLSE (and nothing required on sunspot). Thomas Applencourt Leadership Computing Facility Argonne National Laboratory Building 240 Office - 1122 9700 S Cass Av., Lemont Il, 60439 (630) 252-0036 ________________________________ From: Ecp-aurora-sdk-discuss <[email protected]> on behalf of Charles Leggett via Ecp-aurora-sdk-discuss <[email protected]> Sent: Friday, December 9, 2022 16:27 To: Aurora Discussion List <[email protected]> Subject: Re: [Ecp-aurora-sdk-discuss] Undefine __HAS_EXT_VECTOR_TYPE__ macro 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. On Fri, Dec 9, 2022 at 10:58 AM Charles Leggett <[email protected]<mailto:[email protected]>> wrote: 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 <[email protected]<mailto:[email protected]>> Lawrence Berkeley National Lab 1 Cyclotron Road, MS 50F-1650, Berkeley, CA 94720 tel: 510.495.2930 -- Charles Leggett <[email protected]<mailto:[email protected]>> Lawrence Berkeley National Lab 1 Cyclotron Road, MS 50F-1650, Berkeley, CA 94720 tel: 510.495.2930
participants (1)
-
Applencourt, Thomas