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!

取消
显示结果 
搜索替代 
您的意思是: 
Observer willyeyeball
Observer
1,429 次查看
注册日期: ‎12-21-2018

Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好 :

我在 SDAccel System 模式下,

執行Xilinx提供的 Error Handling(CL) 此專案, 

執行時出現如下錯誤 :

ERROR: No devices found
Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND
This can be caused by an invalid installation of the OpenCL runtime. Please make sure the installation was successful.
TEST FAILED

請問 :

OpenCL runtime 要去哪裡下載呢 ?

Best Regards

willyeyeball

0 项奖励
1 个已接受解答

已接受的解答
Observer willyeyeball
Observer
1,144 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好:

我現在遇到另外的問題:

ERROR: Failed to open HAL driver '/opt/xilinx/xrt/lib/libxrt_hwemu.so'
libcommon_em.so.2: cannot open shared object file: No such file or directory

請問這要怎解決呢?

Best Regards

willyeyeball

2019-01-03 15-31-03 的螢幕擷圖.png

0 项奖励
12 条回复12
Highlighted
Teacher xilinxacct
Teacher
1,403 次查看
注册日期: ‎10-24-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答
0 项奖励
Observer willyeyeball
Observer
1,361 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好 :

我已經灌好以下三個package,

我的系統是 ubuntu 16.04

可是執行 clGetPlatformIDs 仍然會錯

請問這是為何呢?

Best Regards

willyeyeball

2018-12-28 15-05-37 的螢幕擷圖.png

0 项奖励
Teacher xilinxacct
Teacher
1,341 次查看
注册日期: ‎10-24-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

@willyeyeball

Without using any Xilinx tool, can you successfully build an opencl project? 

I wonder if it is some kind of 'path' issue? (e.g. the system does not know where to look for the runtime)

0 项奖励
Observer willyeyeball
Observer
1,309 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好 :

(1) Without using any Xilinx tool, can you successfully build an opencl project? 

Question : How to build an opencl project without using any Xilinx tool ?

(2) I wonder if it is some kind of 'path' issue? (e.g. the system does not know where to look for the runtime) ?

Question : 我要怎知道 opencl runtiome 有沒有灌成功呢 ? 要怎知道 opencl runtiome 灌在哪個目錄下呢 ?

Best regards

willyeyeball

0 项奖励
Teacher xilinxacct
Teacher
1,307 次查看
注册日期: ‎10-24-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

@willyeyeball

OpenCL is a standard that work on GPUs and CPUs (as well as FPGA)... If you write openCL code, you would use an entirely different tool chain, thus no Xilinx code.

You answer implies you are not already setup to do that, but if you were, you could verify the runtime, but compiling a small example that does nothing except try to find (get the IDs) and connect to the device.

0 项奖励
Observer willyeyeball
Observer
1,297 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好:

我下載的OpenCL Runtime 是 " l_opencl_p_18.1.0.013.tgz "

我根據網路上的指示在灌 OpenCL Runtime :

https://askubuntu.com/questions/850281/opencl-on-ubuntu-16-04-intel-sandy-bridge-cpu

但是好像灌失敗了,

請問:

(1) 我應該怎做才能將OpenCL Runtime 灌成功 ?

(2) 如何測試OpenCL Runtime有灌成功呢?

Best Regards

willyeyeball

0 项奖励
Observer willyeyeball
Observer
1,190 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好:

我已經灌好OpenCL Runtime : opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25

不過我按照 : https://askubuntu.com/questions/850281/opencl-on-ubuntu-16-04-intel-sandy-bridge-cpu

檢驗我灌的 OpenCL Runtime : opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25

./print-devices

卻出現如下問題?

ERROR: XILINX_XRT must be set

而且執行 Xilinx 的 Sample Code, 仍然出現 

 Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND 此問題?

請問這是什原因呢 ?

Best Regards

willyeyeball

2019-01-03 11-21-16 的螢幕擷圖.png

2019-01-03 11-19-02 的螢幕擷圖.png

0 项奖励
Teacher xilinxacct
Teacher
1,184 次查看
注册日期: ‎10-24-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

@willyeyeball

It appears you don't have the environment variable set.

export XILINX_XRT=/opt/xilinx/xrt   (or wherever you have it installed)

Hope that helps

If so, mark as solution accepted. (Also a 'reward' is welcome)

Observer willyeyeball
Observer
1,175 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好:

我已經灌好OpenCL Runtime : opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25

不過我按照 : https://askubuntu.com/questions/850281/opencl-on-ubuntu-16-04-intel-sandy-bridge-cpu

檢驗我灌的 OpenCL Runtime : opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25

./print-devices

卻出現如下問題?

ERROR: No devices found

而且執行 Xilinx 的 Sample Code, 仍然出現 

 Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND 此問題?

請問這是什原因呢 ?

Best Regards

willyeyeball

2019-01-03 12-50-27 的螢幕擷圖.png

0 项奖励
Teacher xilinxacct
Teacher
1,165 次查看
注册日期: ‎10-24-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

@willyeyeball

It looks like you are making progress.

This hearkens back to the answer given early in the thread... This continues to look like a path issue.

Set those 2 remaining PATHs, and hopefully near the end.

Hope that helps

0 项奖励
Observer willyeyeball
Observer
1,152 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好:

如果我現在是 System 模式,

請問環境變數 XCL_EMULATION_MODE 要怎設定呢?

例如:

(1) Emulation-SW 模式 : export XCL_EMULATION_MODE=sw_emu

(2) Emulation-HW 模式 : export XCL_EMULATION_MODE=hw_emu

那, System 模式呢?

Best Regards

willyeyeball

 

0 项奖励
Observer willyeyeball
Observer
1,145 次查看
注册日期: ‎12-21-2018

回复: Fatal Error calling clGetPlatformIDs: CL_DEVICE_NOT_FOUND

转到解答

Hi 您好:

我現在遇到另外的問題:

ERROR: Failed to open HAL driver '/opt/xilinx/xrt/lib/libxrt_hwemu.so'
libcommon_em.so.2: cannot open shared object file: No such file or directory

請問這要怎解決呢?

Best Regards

willyeyeball

2019-01-03 15-31-03 的螢幕擷圖.png

0 项奖励