Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
271 Views

oneAPI cannot compile sample program. Support for Xeon Phi or CPUs?

I own two nodes, one with a Intel CPU i5-6200U and the other with a Intel Xeon E5-2620 with a Xeon Phi 7120P and a Tesla K20.

In the first node, I can install and compile, but I cannot execute in the CPU (error CL_INVALID_CONTEXT), just the GPU (Intel graphics). Check: Intel oneAPI: Cannot use oneAPI cpu_selector but OpenCL is working in CPU 

In the second node, I cannot even compile the sample program:

 

 

 

$ source /opt/intel/inteloneapi/setvars.sh
::  initializing oneAPI environment  ::
: advisor -- latest
: ccl -- latest
: compiler -- latest
Warning: Intel PAC A10 device is not found.
Please install the Intel PAC card to execute your program on an FPGA device.
Warning: Intel PAC S10 device is not found.
Please install the Intel PAC card to execute your program on an FPGA device.
: daal -- latest
: debugger -- latest
: dev-utilities -- latest
: dpcpp-ct -- latest
: intelpython -- latest
: ipp -- latest
: mkl -- latest
: mpi -- latest
: oneDNN -- latest
: tbb -- latest
: vpl -- latest
: vtune -- latest
::  oneAPI environment initialized  ::

$ make
dpcpp -O2 -g -std=c++17 -o vector-add-buffers src/vector-add-buffers.cpp
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::runtime_error::runtime_error(char const*)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long, char)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::collate<char> const& std::use_facet<std::__cxx11::collate<char> >(std::locale const&)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::basic_istringstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::basic_fstream<char, std::char_traits<char> >::basic_fstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `VTT for std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build_buffers] Error 1

 

 

 

Another test with `devtoolset-9` enabled:

 

 

dpcpp -O2 -g -std=c++17 -o vector-add-buffers src/vector-add-buffers.cpp -lsycl
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::runtime_error::runtime_error(char const*)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long, char)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::collate<char> const& std::use_facet<std::__cxx11::collate<char> >(std::locale const&)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::basic_istringstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::basic_fstream<char, std::char_traits<char> >::basic_fstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `VTT for std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: /opt/intel/inteloneapi/compiler/2021.1-beta07/linux/bin/../lib/libsycl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:13: build_buffers] Error 1

$ clang++ --version
Intel(R) oneAPI DPC++ Compiler 2021.1-beta07 (2020.5.0.0604)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/inteloneapi/compiler/latest/linux/bin

$ gcc --version
gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

 


On the other side, pure OpenCL  is working in all devices in both nodes.

I would like to know if oneAPI supports the Intel CPU, Intel Xeon and Intel Xeon Phi, to avoid investing more time in something that it is impossible.

I can see that it works in Intel Xeon E-2176G in the Devcloud, but I cannot imitate those conditions (compiling in Xeon or running in i5). Any help?

0 Kudos
9 Replies
Highlighted
Moderator
263 Views

Re:oneAPI cannot compile sample program. Support f...

Hi,


Thanks for reaching out to us.!


Intel Xeon Phi is not supported by Intel oneAPI. 

Please refer to the below link for supported hardware for Intel oneAPI.


https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements...



Thanks

--Goutham


0 Kudos
Highlighted
New Contributor I
252 Views

Re: Re:oneAPI cannot compile sample program. Support f...

Thanks, in that case I won't invest time with the Xeon Phi.

 

But, how about the Intel Xeon, why I cannot compile? Please, check the previous post.

I downloaded and installed all the oneAPI basekit.

What I would like: to try oneAPI in the CPU + GPU, while just leaving Xeon Phi for raw OpenCL (not oneAPI)
I cannot even compile the sample program vector-add-buffers.

 

Any solution?

0 Kudos
Highlighted
Moderator
191 Views

Re:oneAPI cannot compile sample program. Support f...

Hi,

Apologize for the delay.!

 

Could you please confirm the source code which you are trying to compile is the same sample code that is shipped with an official Intel oneAPI basekit? If yes, let us know if there are any code modifications done on your side.

 

If the source code is not an official oneAPI basekit sample, please provide the source code here and steps to reproduce the issue.

 

Also, please let us the below details so that we can investigate better.

 

OS Version

OpenCL Version:

Intel Xeon E5-2620 Generataion (V1/V2/V3/V4):

 

You may refer the below link for more information on Xeon E5-2620:

https://ark.intel.com/content/www/us/en/ark/search.html?_charset_=UTF-8&q=E5-2620

 

Also, please try the below command and let us know the output.

 

dpcpp -std=c++11 -fsycl simple-sycl-code.cpp -o simple-sycl-code --gcc-toolchain=/opt/intel/gcc6.3/

 

 

Regards

Goutham

0 Kudos
Highlighted
Moderator
164 Views

Re:oneAPI cannot compile sample program. Support f...

Hi,


Just a quick reminder.

If your issue still persists, could you please provide the above mentioned details so that we can investigate the issue you are facing.

If your issue is resolved, please let us know the same.


Thanks & regards

Goutham


0 Kudos
Highlighted
New Contributor I
158 Views

Re: Re:oneAPI cannot compile sample program. Support f...

Hi, I was busy and I apologize for the delay too.

 

The program is the same that you provide with the example.

 

On the other side, the CPU:

 

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
stepping        : 7
microcode       : 0x714
cpu MHz         : 1199.951
cache size      : 15360 KB
physical id     : 0
siblings        : 12
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi
bogomips        : 4000.02
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:


Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                24
On-line CPU(s) list:   0-23
Thread(s) per core:    2
Core(s) per socket:    6
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 45
Model name:            Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
Stepping:              7
CPU MHz:               1199.951
CPU max MHz:           2500.0000
CPU min MHz:           1200.0000
BogoMIPS:              4000.02
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              15360K
NUMA node0 CPU(s):     0-5,12-17
NUMA node1 CPU(s):     6-11,18-23
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts spec_ctrl intel_stibp flush_l1d

It seems is the v1 generation.

 

Also, if I try to compile you code, it gives an error. The gcc6.3 dir does not exist (neither others with gcc). I installed the oneAPI BaseKit without errors. The example is the vector add buffers (renamed to be compiled as you want).

$ dpcpp -std=c++11 -fsycl simple-sycl-code.cpp -o simple-sycl-code --gcc-toolchain=/opt/intel/gcc6.3/
In file included from simple-sycl-code.cpp:22:
In file included from /opt/intel/inteloneapi/compiler/latest/linux/bin/../include/sycl/CL/sycl.hpp:11:
In file included from /opt/intel/inteloneapi/compiler/latest/linux/bin/../include/sycl/CL/sycl/accessor.hpp:11:
/opt/intel/inteloneapi/compiler/latest/linux/bin/../include/sycl/CL/__spirv/spirv_types.hpp:11:10: fatal error: 'cstdint' file not found
#include <cstdint>
         ^~~~~~~~~
1 error generated.

$ ls /opt/intel/gcc6.3
ls: cannot access /opt/intel/gcc6.3: No such file or directory
$ ls /opt/intel/
inteloneapi  ism  mic  opencl  opencl-1.2-4.5.0.8

 

 

On the other side, can oneAPI be executed in a Nvidia Tesla GPU?

0 Kudos
Highlighted
Moderator
144 Views

Re:oneAPI cannot compile sample program. Support f...

Hi,


Thanks for providing the details. Could you please tell me the OS and OS Version which you are using? So that we will be able to debug the issue on our end.


And, Regarding Nvidia Tesla GPU: Currently, Intel oneAPI doesn't support NVIDIA GPU's.

However, CodePlay is working on an open-source module that allows you to run oneAPI/Data Parallel C++ codes on NVIDIA GPUs.

You can find related information on the below thread.

https://community.intel.com/t5/Intel-oneAPI-Data-Parallel-C/Why-can-t-run-code-on-GPGPU/m-p/1161323


Thanks & Regards

Goutham



0 Kudos
Highlighted
New Contributor I
97 Views

Re: Re:oneAPI cannot compile sample program. Support f...

Hi, Goutham.

The OS version:

 

 

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

 

 

I have realized that you don't support CentOS 7... and if I try to move to CentOS 8 I will have troubles running OpenCL in the Xeon Phi.

Thanks

0 Kudos
Highlighted
Moderator
47 Views

Re:oneAPI cannot compile sample program. Support f...

Hi,

As Intel oneAPI doesn't support CentOS 7, we recommend you to upgrade to CentOS 8 for Intel oneAPI support.


Please let us know if we have answered all your queries and do let us know if you face any further issues.


Thanks & Regards

Goutham


0 Kudos
Highlighted
Moderator
24 Views

Re:oneAPI cannot compile sample program. Support f...

Hi,

As we have not heard back from you, we are considering that your issue has been resolved and we have answered all your queries. So we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only 

Have a Good day!


Thanks & Regards

Goutham


0 Kudos