UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor krojek
Visitor
1,650 Views
Registered: ‎01-09-2019

The OpenCL code compiles but it doesn't executes: no opencl platform error: 1001

Jump to solution

I followed those instructions to install Xilinx ALVEO u250 FPGA:

Getting Started with Alveo Data Center Accelerator Cards

SDAccel Development Environment

 

The problem is when I try to excecute any code in software or hardware emulation mode. The OpenCL platform is not detected. I have executed below examples on the Nimbix cloud, so the the problem should be with the installation. Thanks for any suggestions.

Card validation:

 

 

$ sudo /opt/xilinx/xrt/bin/xbutil validate

INFO: Found 1 cards

 

INFO: Validating card[0]: xilinx_u250_xdma_201830_1

INFO: Checking PCIE link status: PASSED

INFO: Starting verify kernel test:

INFO: verify kernel test PASSED

INFO: Starting DMA test

Host -> PCIe -> FPGA write bandwidth = 10979.7 MB/s

Host <- PCIe <- FPGA read bandwidth = 12156.2 MB/s

INFO: DMA test PASSED

INFO: Starting DDR bandwidth test: ..........

Maximum throughput: 47496.378906 MB/s

INFO: DDR bandwidth test PASSED

INFO: Card[0] validated successfully.

 

INFO: All cards validated successfully.

 

 

Software installed:

 

 

xilinx-u250-xdma-201830.1_18.04.deb

xilinx-u250-xdma-201830.1-dev_18.04.deb

xrt_201830.2.1.1695_18.04-xrt.deb

Xilinx_SDAccel_2018.3_1207_2324_Lin64.bin

 

ls /opt/xilinx/

DocNav/         dsa/            platforms/      SDx/            xic/            xrt/

Downloads/      Model_Composer/ SDK/

 

cat /etc/OpenCL/vendors/xilinx.icd

/opt/xilinx/xrt/lib/libxilinxopencl.so

 

ls /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/

hw/                             sw/

license/                        xilinx_u250_xdma_201830_1.xpfm

 

lsb_release -a

LSB Version:    core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch

Distributor ID: Ubuntu

Description:    Ubuntu 18.04.1 LTS

Release:        18.04

Codename:       bionic

 

 Example from a git repository:

Compilation:

 

~/SDAccel_Examples/getting_started/misc/vadd$ make all TARGET=sw_emu DEVICE=xilinx_u250_xdma_201830_1

mkdir -p ./xclbin

/opt/xilinx/SDx/2018.3/bin/xcpp -I../../..//libs/xcl2 -I/opt/xilinx/xrt/include/ -Wall -O0 -g -std=c++14 -fmessage-length=0 ../../..//libs/xcl2/xcl2.cpp src/host.cpp  -o 'vadd'  -L/opt/xilinx/xrt/lib/ -lOpenCL -lpthread -lrt -lstdc++

mkdir -p ./xclbin

/opt/xilinx/SDx/2018.3/bin/xocc -t sw_emu --platform xilinx_u250_xdma_201830_1 --save-temps --temp_dir ./_x.sw_emu.xilinx_u250_xdma_201830_1  -c -k krnl_vadd -I'src' -o'xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xo' 'src/krnl_vadd.cl'

 

****** xocc v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

Attempting to get a license: ap_opencl

Feature available: ap_opencl

INFO: [XOCC 60-1306] Additional information associated with this xocc compile can be found at:

        Reports: /home/krojek/SDAccel_Examples/getting_started/misc/vadd/_x.sw_emu.xilinx_u250_xdma_201830_1/reports/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1

        Log files: /home/krojek/SDAccel_Examples/getting_started/misc/vadd/_x.sw_emu.xilinx_u250_xdma_201830_1/logs/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1

INFO: [XOCC 60-585] Compiling for software emulation target

Running SDx Rule Check Server on port:38129

INFO: [XOCC 60-895]   Target platform: /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/xilinx_u250_xdma_201830_1.xpfm

WARNING: [XOCC 74-49] Failed to read in file /opt/xilinx/SDx/2018.3/platforms/achromatic during platform validation. - it doesn't appear in the NIMBIX cloud

INFO: [XOCC 60-423]   Target device: xilinx_u250_xdma_201830_1

INFO: [XOCC 60-242] Creating kernel: 'krnl_vadd'

INFO: [XOCC 60-594] Finished kernel compilation

INFO: [XOCC 60-586] Created xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xo

INFO: [XOCC 60-791] Total elapsed time: 0h 0m 11s

mkdir -p ./xclbin

/opt/xilinx/SDx/2018.3/bin/xocc -t sw_emu --platform xilinx_u250_xdma_201830_1 --save-temps --temp_dir ./_x.sw_emu.xilinx_u250_xdma_201830_1  -l  --nk krnl_vadd:1 -o'xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xclbin' xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xo

 

****** xocc v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

Attempting to get a license: ap_opencl

Feature available: ap_opencl

INFO: [XOCC 60-1306] Additional information associated with this xocc link can be found at:

        Reports: /home/krojek/SDAccel_Examples/getting_started/misc/vadd/_x.sw_emu.xilinx_u250_xdma_201830_1/reports/link

        Log files: /home/krojek/SDAccel_Examples/getting_started/misc/vadd/_x.sw_emu.xilinx_u250_xdma_201830_1/logs/link

INFO: [XOCC 60-629] Linking for software emulation target

Running SDx Rule Check Server on port:39787

INFO: [XOCC 60-895]   Target platform: /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/xilinx_u250_xdma_201830_1.xpfm

WARNING: [XOCC 74-49] Failed to read in file /opt/xilinx/SDx/2018.3/platforms/achromatic during platform validation.

INFO: [XOCC 60-423]   Target device: xilinx_u250_xdma_201830_1

INFO: [XOCC 60-586] Created xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xclbin

INFO: [XOCC 60-1307] Run completed. Additional information can be found in:

        Guidance: /home/krojek/SDAccel_Examples/getting_started/misc/vadd/_x.sw_emu.xilinx_u250_xdma_201830_1/reports/link/xocc_link_krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1_guidance.html

        Steps Log File: /home/krojek/SDAccel_Examples/getting_started/misc/vadd/_x.sw_emu.xilinx_u250_xdma_201830_1/logs/link/link.steps.log

 

INFO: [XOCC 60-791] Total elapsed time: 0h 0m 17s

emconfigutil --platform xilinx_u250_xdma_201830_1 --od ./xclbin/xilinx_u250_xdma_201830_1

 

****** configutil v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

INFO: [ConfigUtil 60-895]   Target platform: /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/xilinx_u250_xdma_201830_1.xpfm

emulation configuration file `emconfig.json` is created in ./xclbin/xilinx_u250_xdma_201830_1 directory

 

 Execution:

 

~/SDAccel_Examples/getting_started/misc/vadd$ make check TARGET=sw_emu DEVICE=xilinx_u250_xdma_201830_1

cp -rf ./xclbin/xilinx_u250_xdma_201830_1/emconfig.json .

XCL_EMULATION_MODE=sw_emu ./vadd

../../..//libs/xcl2/xcl2.cpp:40 Error calling err = cl::Platform::get(&platforms), error code is: -1001

Makefile:88: recipe for target 'check' failed

make: *** [check] Error 1

 

Example from SDAccel (cannot compile!):

Compilation: 

 

 

~/samples/vadd$ make -f sdaccel.mk run_cpu_em

make SDA_FLOW=cpu_emu run_em -f sdaccel.mk

make[1]: Entering directory '/home/krojek/samples/vadd'

xcpp  /opt/xilinx/SDx/2018.3/lib/lnx64.o/Ubuntu/libstdc++.so.6 -L/opt/xilinx/xrt/lib/ -lOpenCL -lstdc++ -lxilinxopencl -lrt -pthread vadd.o -o vadd

vadd.o: In function `cl::detail::ReferenceHandler<_cl_device_id*>::retain(_cl_device_id*)':

/usr/include/CL/cl2.hpp:1479: undefined reference to `clRetainDevice'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_device_id*>::release(_cl_device_id*)':

/usr/include/CL/cl2.hpp:1490: undefined reference to `clReleaseDevice'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_context*>::release(_cl_context*)':

/usr/include/CL/cl2.hpp:1525: undefined reference to `clReleaseContext'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':

/usr/include/CL/cl2.hpp:1534: undefined reference to `clReleaseCommandQueue'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_mem*>::retain(_cl_mem*)':

/usr/include/CL/cl2.hpp:1541: undefined reference to `clRetainMemObject'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_mem*>::release(_cl_mem*)':

/usr/include/CL/cl2.hpp:1543: undefined reference to `clReleaseMemObject'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_program*>::release(_cl_program*)':

/usr/include/CL/cl2.hpp:1561: undefined reference to `clReleaseProgram'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_kernel*>::release(_cl_kernel*)':

/usr/include/CL/cl2.hpp:1570: undefined reference to `clReleaseKernel'

vadd.o: In function `cl::detail::ReferenceHandler<_cl_event*>::release(_cl_event*)':

/usr/include/CL/cl2.hpp:1579: undefined reference to `clReleaseEvent'

vadd.o: In function `cl::Platform::getInfo(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const':

/usr/include/CL/cl2.hpp:2315: undefined reference to `clGetPlatformInfo'

vadd.o: In function `cl::Platform::getDevices(unsigned long, std::vector<cl::Device, std::allocator<cl::Device> >*) const':

/usr/include/CL/cl2.hpp:2346: undefined reference to `clGetDeviceIDs'

/usr/include/CL/cl2.hpp:2352: undefined reference to `clGetDeviceIDs'

vadd.o: In function `cl::Platform::get(std::vector<cl::Platform, std::allocator<cl::Platform> >*)':

/usr/include/CL/cl2.hpp:2475: undefined reference to `clGetPlatformIDs'

/usr/include/CL/cl2.hpp:2481: undefined reference to `clGetPlatformIDs'

vadd.o: In function `cl::Context::Context(cl::Device const&, long*, void (*)(char const*, void const*, unsigned long, void*), void*, int*)':

/usr/include/CL/cl2.hpp:2689: undefined reference to `clCreateContext'

vadd.o: In function `cl::Buffer::Buffer(cl::Context const&, unsigned long, unsigned long, void*, int*)':

/usr/include/CL/cl2.hpp:3670: undefined reference to `clCreateBuffer'

vadd.o: In function `cl::Program::Program(cl::Context const&, std::vector<cl::Device, std::allocator<cl::Device> > const&, std::vector<std::pair<void const*, unsigned long>, std::allocator<std::pair<void const*, unsigned long> > > const&, std::vector<int, std::allocator<int> >*, int*)':

/usr/include/CL/cl2.hpp:6197: undefined reference to `clCreateProgramWithBinary'

vadd.o: In function `cl::Kernel::Kernel(cl::Program const&, char const*, int*)':

/usr/include/CL/cl2.hpp:6595: undefined reference to `clCreateKernel'

vadd.o: In function `cl::CommandQueue::CommandQueue(cl::Context const&, cl::Device const&, unsigned long, int*)':

/usr/include/CL/cl2.hpp:6979: undefined reference to `clCreateCommandQueue'

vadd.o: In function `cl::CommandQueue::enqueueMigrateMemObjects(std::vector<cl::Memory, std::allocator<cl::Memory> > const&, unsigned long, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':

/usr/include/CL/cl2.hpp:7950: undefined reference to `clEnqueueMigrateMemObjects'

vadd.o: In function `cl::CommandQueue::enqueueTask(cl::Kernel const&, std::vector<cl::Event, std::allocator<cl::Event> > const*, cl::Event*) const':

/usr/include/CL/cl2.hpp:8001: undefined reference to `clEnqueueTask'

vadd.o: In function `cl::CommandQueue::finish() const':

/usr/include/CL/cl2.hpp:8224: undefined reference to `clFinish'

vadd.o: In function `std::enable_if<!std::is_pointer<cl::Buffer>::value, int>::type cl::Kernel::setArg<cl::Buffer>(unsigned int, cl::Buffer const&)':

/usr/include/CL/cl2.hpp:5858: undefined reference to `clSetKernelArg'

vadd.o: In function `std::enable_if<!std::is_pointer<int>::value, int>::type cl::Kernel::setArg<int>(unsigned int, int const&)':

/usr/include/CL/cl2.hpp:5858: undefined reference to `clSetKernelArg'

vadd.o: In function `int cl::Device::getInfo<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const':

/usr/include/CL/cl2.hpp:2076: undefined reference to `clGetDeviceInfo'

collect2: error: ld returned 1 exit status

../common/common.mk:124: recipe for target 'vadd' failed

make[1]: *** [vadd] Error 1

make[1]: Leaving directory '/home/krojek/samples/vadd'

../common/common.mk:101: recipe for target 'run_cpu_em' failed

make: *** [run_cpu_em] Error 2

 

  Compilation of the previous code using the makefile from the git repository:

 

make all

mkdir -p ./xclbin

/opt/xilinx/SDx/2018.3/bin/xcpp -I./libs/xcl2 -I/opt/xilinx/xrt/include/ -Wall -O0 -g -std=c++14 -fmessage-length=0 -DPTF=1  -DTSK=0  -DNDIM=16  -DMDIM=16  -DLDIM=16  -DTS=100  -DTSRES=1  -DPRC=2  -DX=2 -DV1=2 -DV2=2 -DV3=2 -DH=2  ./libs/xcl2/xcl2.cpp src/host.cpp  -o 'vadd.exe'  -L/opt/xilinx/xrt/lib/ -lOpenCL -lpthread -lrt -lstdc++

./libs/xcl2/xcl2.cpp: In function ‘xcl_world xcl_world_single(cl_device_type, const char*, const char*)’:

./libs/xcl2/xcl2.cpp:129:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

                 for(i = 0; i < num_platforms; i++) {

                            ~~^~~~~~~~~~~~~~~

./libs/xcl2/xcl2.cpp:143:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

                 for(i = 0; i < num_platforms; i++) {

                            ~~^~~~~~~~~~~~~~~

./libs/xcl2/xcl2.cpp:153:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

  if (i == num_platforms) {

      ~~^~~~~~~~~~~~~~~~

./libs/xcl2/xcl2.cpp:173:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

                 for (i=0; i<num_devices; i++) {

                           ~^~~~~~~~~~~~

./libs/xcl2/xcl2.cpp:188:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

                 if (i == num_devices) {

                     ~~^~~~~~~~~~~~~~

./libs/xcl2/xcl2.cpp:206:49: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated [-Wdeprecated-declarations]

                                             &err);

                                                 ^

In file included from /usr/include/CL/opencl.h:47:0,

                 from ./libs/xcl2/xcl2.hpp:50,

                 from ./libs/xcl2/xcl2.cpp:53:

/usr/include/CL/cl.h:1443:1: note: declared here

 clCreateCommandQueue(cl_context                     /* context */,

 ^~~~~~~~~~~~~~~~~~~~

mkdir -p ./xclbin

/opt/xilinx/SDx/2018.3/bin/xocc -t sw_emu --platform xilinx_u250_xdma_201830_1 --save-temps  -c -k krnl_vadd -I'src' -o'xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xo' 'src/krnl_vadd.cl'

 

****** xocc v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

Attempting to get a license: ap_opencl

Feature available: ap_opencl

INFO: [XOCC 60-1306] Additional information associated with this xocc compile can be found at:

        Reports: /home/krojek/XILINX-soft/cloud/NWP/_x/reports/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1

        Log files: /home/krojek/XILINX-soft/cloud/NWP/_x/logs/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1

INFO: [XOCC 60-585] Compiling for software emulation target

Running SDx Rule Check Server on port:36889

INFO: [XOCC 60-895]   Target platform: /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/xilinx_u250_xdma_201830_1.xpfm

WARNING: [XOCC 74-49] Failed to read in file /opt/xilinx/SDx/2018.3/platforms/achromatic during platform validation.

INFO: [XOCC 60-423]   Target device: xilinx_u250_xdma_201830_1

INFO: [XOCC 60-242] Creating kernel: 'krnl_vadd'

INFO: [XOCC 60-594] Finished kernel compilation

INFO: [XOCC 60-586] Created xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xo

INFO: [XOCC 60-791] Total elapsed time: 0h 0m 12s

mkdir -p ./xclbin

/opt/xilinx/SDx/2018.3/bin/xocc -t sw_emu --platform xilinx_u250_xdma_201830_1 --save-temps  -l  --nk krnl_vadd:1 -o'xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xclbin' xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xo

 

****** xocc v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

Attempting to get a license: ap_opencl

Feature available: ap_opencl

INFO: [XOCC 60-1306] Additional information associated with this xocc link can be found at:

        Reports: /home/krojek/XILINX-soft/cloud/NWP/_x/reports/link

        Log files: /home/krojek/XILINX-soft/cloud/NWP/_x/logs/link

INFO: [XOCC 60-629] Linking for software emulation target

Running SDx Rule Check Server on port:38933

INFO: [XOCC 60-895]   Target platform: /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/xilinx_u250_xdma_201830_1.xpfm

WARNING: [XOCC 74-49] Failed to read in file /opt/xilinx/SDx/2018.3/platforms/achromatic during platform validation.

INFO: [XOCC 60-423]   Target device: xilinx_u250_xdma_201830_1

INFO: [XOCC 60-586] Created xclbin/krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1.xclbin

INFO: [XOCC 60-1307] Run completed. Additional information can be found in:

        Guidance: /home/krojek/XILINX-soft/cloud/NWP/_x/reports/link/xocc_link_krnl_vadd.sw_emu.xilinx_u250_xdma_201830_1_guidance.html

        Steps Log File: /home/krojek/XILINX-soft/cloud/NWP/_x/logs/link/link.steps.log

 

INFO: [XOCC 60-791] Total elapsed time: 0h 0m 18s

emconfigutil --platform xilinx_u250_xdma_201830_1 --od ./xclbin/xilinx_u250_xdma_201830_1

 

****** configutil v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

INFO: [ConfigUtil 60-895]   Target platform: /opt/xilinx/platforms/xilinx_u250_xdma_201830_1/xilinx_u250_xdma_201830_1.xpfm

emulation configuration file `emconfig.json` is created in ./xclbin/xilinx_u250_xdma_201830_1 directory

 

  

Execution (the same error - no opencl platform!):

 

 

:~/XILINX-soft/cloud/NWP$ make check

cp -rf ./xclbin/xilinx_u250_xdma_201830_1/emconfig.json .

XCL_EMULATION_MODE=sw_emu ./vadd.exe

platforms.size()=0

Error: Unable to find Target Device xilinx_u250_xdma_201830_1

Makefile:90: recipe for target 'check' failed

make: *** [check] Error 1

 

Any ideas how to solve the problem with OpenCL platform?

0 Kudos
1 Solution

Accepted Solutions
Visitor krojek
Visitor
1,491 Views
Registered: ‎01-09-2019

Re: The OpenCL code compiles but it doesn't executes: no opencl platform error: 1001

Jump to solution

I have installed Ubuntu 16.04 LTS with linux kernel 4.4.0-141-generic and  Xilinx SDx xdf 2018.2. Now it works. I think that there was a problem with the linux kernel version.

View solution in original post

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
1,604 Views
Registered: ‎07-17-2018

Re: The OpenCL code compiles but it doesn't executes: no opencl platform error: 1001

Jump to solution

please try the following: 

1 check if the /etc/OpenCL/vendors/xilinx.icd is exist

 2 check if the xilinx.icd content is libxilinxopencl.so

 3 check the env , if the library path of libxilinxopencl.so is in the env 

Thanks

Min

0 Kudos
Visitor krojek
Visitor
1,590 Views
Registered: ‎01-09-2019

Re: The OpenCL code compiles but it doesn't executes: no opencl platform error: 1001

Jump to solution

Thanks for your quick response. I have checked all the points:

The file exists:

~$ cat /etc/OpenCL/vendors/xilinx.icd
/opt/xilinx/xrt/lib/libxilinxopencl.so

and the library also exists:

~$ ls /opt/xilinx/xrt/lib/libxilinxopencl.so

/opt/xilinx/xrt/lib/libxilinxopencl.so

The env contains the path:

source /opt/xilinx/xrt/setup.sh
source /opt/xilinx/SDx/2018.3/settings64.sh

~$ echo $LD_LIBRARY_PATH
/opt/xilinx/SDx/2018.3/lib/lnx64.o/Ubuntu:/opt/xilinx/SDx/2018.3/lib/lnx64.o:/opt/xilinx/SDx/2018.3/runtime/lib/x86_64:/opt/xilinx/xrt/lib:

~$ echo $PATH
/opt/xilinx/Model_Composer/2018.3/bin:/opt/xilinx/SDK/2018.3/bin:/opt/xilinx/SDK/2018.3/gnu/microblaze/lin/bin:/opt/xilinx/SDK/2018.3/gnu/arm/lin/bin:/opt/xilinx/SDK/2018.3/gnu/microblaze/linux_toolchain/lin64_le/bin:/opt/xilinx/SDK/2018.3/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin:/opt/xilinx/SDK/2018.3/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/opt/xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin:/opt/xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-none/bin:/opt/xilinx/SDK/2018.3/gnu/armr5/lin/gcc-arm-none-eabi/bin:/opt/xilinx/SDK/2018.3/tps/lnx64/cmake-3.3.2/bin:/opt/xilinx/DocNav:/opt/xilinx/SDx/2018.3/bin:/opt/xilinx/Vivado/2018.3/bin:/opt/xilinx/xrt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

~$ echo $XILINX_SDX
/opt/xilinx/SDx/2018.3

 

0 Kudos
Visitor krojek
Visitor
1,492 Views
Registered: ‎01-09-2019

Re: The OpenCL code compiles but it doesn't executes: no opencl platform error: 1001

Jump to solution

I have installed Ubuntu 16.04 LTS with linux kernel 4.4.0-141-generic and  Xilinx SDx xdf 2018.2. Now it works. I think that there was a problem with the linux kernel version.

View solution in original post

0 Kudos