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: 
Highlighted
Observer calex
Observer
1,388 Views
Registered: ‎08-09-2012

SDaccel 2018.2 : vadd example : make check problem

Jump to solution

hi all,

 

i'm following the

 

https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/misc/vadd

 

example. Using the GUI, it's ok but now i'm trying to use the makefile.

I'm reading the README.md and try the following commands :

 

make all TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic REPORT=estimate

make check TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic

 

the make check fails :

Error: Failed to find Xilinx platform

 

the result is the same if i try :

 

export LD_LIBRARY_PATH=$XILINX_SDX/runtime/lib/x86_64/:$LD_LIBRARY_PATH
export XCL_EMULATION_MODE=sw_emu
emconfigutil --platform 'xilinx:kcu1500:dynamic' --nd 1
./vadd

 

find attached the log file.

any idea ?

 

C.Alexandre

0 Kudos
1 Solution

Accepted Solutions
Observer calex
Observer
1,535 Views
Registered: ‎08-09-2012

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

hi all,

 

if you are using (as me) SDaccel 2018.2

under Ubuntu 16.04 LTS, you have to modify

in the local github clone of SDAccel examples

 

examples/libs/opencl/opencl.mk

 

line 14

 

opencl_LDFLAGS=-L$(OPENCL_LIB) -L$(SDA_LIB) -lxilinxopencl -pthread

 

then

 

make all TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic REPORT=estimate

make check TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic

 

works properly.

 

regards C.Alexandre

8 Replies
Xilinx Employee
Xilinx Employee
1,381 Views
Registered: ‎01-12-2017

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

Hi @calex,

 

 

  1. Please create a file and it's name should be xilinx.icd and content should be libxilinxopencl.so .
  2. setenv OPENCL_VENDOR_PATH <directory where xilinx.icd file is present> (cshell) in case of bash use export command to set the environment variable accordingly.

Thanks

Kali

 

Xilinx Employee
Xilinx Employee
1,373 Views
Registered: ‎05-06-2008

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

Hello @calex,

 

You can run the following command to get a list of available platforms for the given Vivado release:

  xocc --list

 

For my 2018.2, I get the following:

xilinx_kcu1500_dynamic_5_0
xilinx_vcu1525_dynamic_5_1

 

Thanks,
Chris

Observer calex
Observer
1,326 Views
Registered: ‎08-09-2012

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

Hi Kalib,

 

i have made a copy of libxilinxopencl.so and rename it to xilinx.icd.

i can find 3 versions of libxilinxopencl.so. I have checked all :

 

alex@bar:~/workspace/examples/getting_started/misc/vadd$ echo $OPENCL_VENDOR_PATH
/home/alex/Xilinx/SDx/xilinx.icd


alex@bar:~/workspace/examples/getting_started/misc/vadd$ file /home/alex/Xilinx/SDx/xilinx.icd
/home/alex/Xilinx/SDx/xilinx.icd: ELF 64-bit LSB shared object, ARM aarch64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=3a26a1d32678174c3926e7bda0547911d4ab6eb7, not stripped
alex@bar:~/workspace/examples/getting_started/misc/vadd$ file /home/alex/Xilinx/SDx/xilinx.icd
/home/alex/Xilinx/SDx/xilinx.icd: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=9de687511f662f3fe4b9b0e185e20811ecb4d554, not stripped

alex@bar:~/workspace/examples/getting_started/misc/vadd$ file /home/alex/Xilinx/SDx/xilinx.icd
/home/alex/Xilinx/SDx/xilinx.icd: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, not stripped

 

in all cases, the failure is the same :

 

alex@bar:~/workspace/examples/getting_started/misc/vadd$ make check TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic
/home/alex/Xilinx/SDx/2018.2/bin/emconfigutil --platform xilinx:kcu1500:dynamic --nd 1

****** configutil v2018.2 (64-bit)
  **** SW Build 2258646 on Thu Jun 14 20:02:38 MDT 2018
    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

INFO: [ConfigUtil 60-895]   Target platform: /home/alex/Xilinx/SDx/2018.2/platforms/xilinx_kcu1500_dynamic_5_0/xilinx_kcu1500_dynamic_5_0.xpfm
emulation configuration file `emconfig.json` is created in current working directory
XCL_EMULATION_MODE=sw_emu ./vadd
Error: Failed to find Xilinx platform
../../..//utility/check.mk:60 : la recette pour la cible « check_sw_emu_xilinx_kcu1500_dynamic_check » a échouée
make: *** [check_sw_emu_xilinx_kcu1500_dynamic_check] Erreur 1

 

regards

C.ALEXANDRE

 

0 Kudos
Xilinx Employee
Xilinx Employee
1,320 Views
Registered: ‎01-12-2017

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

Hi @calex ,

 

1. Create a directory at following location on your machine.

 

/home/alex/Xilinx/SDx/xilinx_icd

 

2. Copy the xilinx.icd file at  /home/alex/Xilinx/SDx/xilinx_icd

3. setenv OPENCL_VENDOR_PATH /home/alex/Xilinx/SDx/xilinx_icd

 

When you do echo $OPENCL_VENDOR_PATH it must point to the directory where xilinx.icd file is present but not the xilinx.icd file itself (as per your previous log).

 

alex@bar:~/workspace/examples/getting_started/misc/vadd$ echo $OPENCL_VENDOR_PATH
/home/alex/Xilinx/SDx/xilinx.icd

 

Alex: i have made a copy of libxilinxopencl.so and rename it to xilinx.icd.

You need not rename this way instead create a file with xilinx.icd file name.

Add libxilinxopencl.so as content of xilinx.icd and save it.

 

Thanks

Kali

0 Kudos
Observer calex
Observer
1,308 Views
Registered: ‎08-09-2012

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

hi kalib,

 

i'm sorry, but i don't understand clearly the procedure :

 

1)  create a file with xilinx.icd file name.

 

2) Add libxilinxopencl.so as content of xilinx.icd and save it.

 

what do you mean exactly (these are binary files) ?

 

regards

calex

0 Kudos
Observer calex
Observer
1,302 Views
Registered: ‎08-09-2012

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

and should i use the x86-64, version ?

 

regards

calex

0 Kudos
Observer calex
Observer
1,536 Views
Registered: ‎08-09-2012

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

hi all,

 

if you are using (as me) SDaccel 2018.2

under Ubuntu 16.04 LTS, you have to modify

in the local github clone of SDAccel examples

 

examples/libs/opencl/opencl.mk

 

line 14

 

opencl_LDFLAGS=-L$(OPENCL_LIB) -L$(SDA_LIB) -lxilinxopencl -pthread

 

then

 

make all TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic REPORT=estimate

make check TARGETS=sw_emu DEVICES=xilinx:kcu1500:dynamic

 

works properly.

 

regards C.Alexandre

Xilinx Employee
Xilinx Employee
1,224 Views
Registered: ‎01-12-2017

Re: SDaccel 2018.2 : vadd example : make check problem

Jump to solution

Hi @calex,

 

Good to know that provided fix works for you based on our offline communication.

I am sharing the solution that I provided to you offline here to benefit future users of SDAccel 18.2 with Ubuntu 16.4 environment. 

 

---------------------------------------------------------------------------------------------------------------------------

 

Hi Alex,

 

Please try this

 

At following location in your local github clone of SDAccel examples --> https://github.com/Xilinx/SDAccel_Examples/blob/master/libs/opencl/opencl.mk

Basically replace -lOpenCL  with -lxilinxopencl .

 

 

opencl_LDFLAGS=-L$(OPENCL_LIB) -L$(SDA_LIB) -lxilinxopencl -pthread

 

Thanks

Kali

0 Kudos