How to compile SYCL program with icx

  Kiến thức lập trình

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

Antag0nist is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT