I’m new to SYCL. And I’m having some trouble compiling an almost empty program, and I really don’t understand how to fix the redefinition of type_traits.
I’ve tried all the compilation command options (and haven’t forgotten about setvars.bat, OS Windows):
icx-cl -fsycl main_ecg.cpp
icx -fsycl main_ecg.cpp
icpx -fsycl main_ecg.cpp
dpcpp -fsycl main_ecg.cpp
Also without -fsycl flag
main_ecg.cpp
#include <sycl/sycl.hpp>
int main() {
return 0;
}
And the result it’s
enter image description here
New contributor