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 channinglan
Visitor
3,290 Views
Registered: ‎08-21-2017

SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

I change 2017.2 to try ug1021 lab2...

 

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

run command ..

make -f makefile.mk TARGET=sw_emu

 

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

The compilation is complete but a warning is displayed

WARNING: [XOCC 60-923] --xdevice option has been deprecated in the current release. Please use --platform/-f option instead to specify a platform

 

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

No device found during execution

[root@localhost vadd]# ./host.exe kernels.sw_emu.xclbin

Linux:3.10.0-514.el7.x86_64:#1 SMP Tue Nov 22 16:42:41 UTC 2016:x86_64
---
XILINX_OPENCL="/opt/xil-accel-rd-kcu1500/xbinst"
LD_LIBRARY_PATH="/opt/Xilinx/SDx/2017.2/runtime/lib/x86_64:/opt/Xilinx/SDx/2017.2/lib/lnx64.o:/opt/Xilinx/SDx/2017.2/Vivado/lib/lnx64.o:/opt/Xilinx/SDx/2017.2/Vivado_HLS/lnx64/tools/opencv:/usr/lib/x86_64-linux-gnu:/opt/Xilinx/SDx/2017.2/runtime/lib/x86_64:/opt/Xilinx/SDx/2017.2/lib/lnx64.o"
---
Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

 

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

but run "xbsak query"  ,device is ok

 

See the attached file for details

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor channinglan
Visitor
4,954 Views
Registered: ‎08-21-2017

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

in  makefile.mk

 

modify XDEVICE to

XDEVICE = xilinx_kcu1500_4ddr-xpr_4_0

 

 

build cpu and hw emulation is ok

View solution in original post

13 Replies
Visitor channinglan
Visitor
3,260 Views
Registered: ‎08-21-2017

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

I have no warning message after I fix "--xdevice"  to "--platform" ..

 

 

0 Kudos
3,214 Views
Registered: ‎11-09-2016

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

I have a similar problem, I will greatly appreciate if anyone has the solution.

 

Thanks,

Jiandong.

0 Kudos
Moderator
Moderator
3,193 Views
Registered: ‎02-07-2008

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

@channinglan, yes, the --platform option uses file friendly names and recommended to be used going forward.

 

The tutorial will be updated to replace --xdevice with the --platform option. In the meantime, I'll capture this information in an Answer Record.

 

@mujiandong1991, in the makefile, if you replace the --xdevice with --platform, is the target device found?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
3,177 Views
Registered: ‎11-09-2016

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

Hi, Thanks for your kind reply!

after I replace the "--xdevice" with "--platform" in the common.mk, I don't have the WARNING message,

 

"WARNING: [XOCC 60-923] --xdevice option has been deprecated in the current release. Please use --platform/-f option instead to specify a platform"

 

but I still have the ERROR message

"Error: Unable to find Target Device xilinx:adm-pcie-7v3:1ddr:3.0".

 

Yeah, I am using adm-pcie-7v3:1ddr:3.0

0 Kudos
Moderator
Moderator
3,163 Views
Registered: ‎02-07-2008

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

Try adding XDEVICE=xilinx:adm-pcie-7v3:1ddr:3.0 to the make command, using the original make fle?

 

For the example in the initial post:

make -f makefile.mk TARGET=sw_emu XDEVICE=xilinx:adm-pcie-7v3:1ddr:3.0

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
3,154 Views
Registered: ‎11-09-2016

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

Sorry, it still doesn't work. Please see the following running report.

 

jiandong@kangroo:~/Xilinx_WorkPlace_2017_2/vadd2017$ TARGET=sw_emu XDEVICE=xilinx:adm-pcie-7v3:1ddr:3.0 make -f sdaccel.mk run_cpu_em

make SDA_FLOW=cpu_emu run_em -f sdaccel.mk

make[1]: Entering directory '/home/jiandong/Xilinx_WorkPlace_2017_2/vadd2017'

emconfigutil --platform xilinx:adm-pcie-7v3:1ddr:3.0 --od .

 

****** configutil v2017.2_sdx (64-bit)

**** SW Build 1972098 on Wed Aug 23 11:34:38 MDT 2017

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

INFO: [ConfigUtil 60-895]  Target platform: /opt/Xilinx/SDx/2017.2/platforms/xilinx_adm-pcie-7v3_1ddr_3_0/xilinx_adm-pcie-7v3_1ddr_3_0.xpfm

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

xcpp -c vadd.cpp -o vadd.o -g -Wall -DFPGA_DEVICE -DC_KERNEL -I/opt/Xilinx/SDx/2017.2/runtime/include/1_2 -std=c++14 -DTARGET_DEVICE=\"xilinx:adm-pcie-7v3:1ddr:3.0\" -I/opt/Xilinx/SDx/2017.2/runtime/include/1_2 -std=c++14 -I/opt/Xilinx/SDx/2017.2/Vivado_HLS/include/ -D__USE_XOPEN2K8

xcpp vadd.o -o vadd -L/opt/Xilinx/SDx/2017.2/runtime/lib/x86_64 -lxilinxopencl -lstdc++ -L/opt/Xilinx/SDx/2017.2/runtime/lib/x86_64 -lxilinxopencl -lrt -pthread -lstdc++

xocc -t sw_emu --platform xilinx:adm-pcie-7v3:1ddr:3.0 -o bin_vadd_cpu_emu.xclbin -s --kernel krnl_vadd krnl_vadd.cl

 

****** xocc v2017.2_sdx (64-bit)

**** SW Build 1972098 on Wed Aug 23 11:34:38 MDT 2017

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

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

INFO: [XOCC 60-895] Target platform: /opt/Xilinx/SDx/2017.2/platforms/xilinx_adm-pcie-7v3_1ddr_3_0/xilinx_adm-pcie-7v3_1ddr_3_0.xpfm

INFO: [XOCC 60-423] Target device: xilinx:adm-pcie-7v3:1ddr:3.0

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

INFO: [XOCC 60-594] Finished kernel compilation

INFO: [XOCC 60-586] Created bin_vadd_cpu_emu.xclbin

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

XCL_EMULATION_MODE=sw_emu ./vadd bin_vadd_cpu_emu.xclbin

Linux:4.4.0-96-generic:#119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017:x86_64

---

XILINX_OPENCL="/opt/Xilinx/SDx/2017.2"

LD_LIBRARY_PATH="/opt/Xilinx/7v3_dsa_2017_2/xbinst/runtime/lib/x86_64:/opt/Xilinx/SDx/2017.2/runtime/lib/x86_64:/opt/Xilinx/SDx/2017.2/lib/lnx64.o"

---

opendir: Path does not exist or could not be read.: No such file or directory

1

Error: Unable to find Target Device xilinx:adm-pcie-7v3:1ddr:3.0 ../common/common.mk:107: recipe for target 'run_em' failed

make[1]: *** [run_em] Error 1

make[1]: Leaving directory '/home/jiandong/Xilinx_WorkPlace_2017_2/vadd2017' ../common/common.mk:98: recipe for target 'run_cpu_em' failed make: *** [run_cpu_em] Error 2

0 Kudos
Xilinx Employee
Xilinx Employee
3,119 Views
Registered: ‎07-16-2008

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

Did the flow fail on all supported DSAs? What if you run the following command?

xocc --list xdevices

 

In addition, did you run installation script generated by xbinst to install the driver for the ADM-PCIE-7V3 card?

cd <path>/xbinst

sudo ./install.sh

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
3,105 Views
Registered: ‎11-09-2016

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

sorry for the late response.

 

jiandong@kangroo:~/Xilinx_WorkPlace_2017_2/vadd2017$ xocc --list xdevices

xilinx:adm-pcie-ku3:2ddr-xpr:3.3

xilinx:kcu1500:4ddr-xpr:4.0

xilinx:xil-accel-rd-ku115:4ddr-xpr:3.3

xilinx:zc706:linux-uart:1.0

xilinx:adm-pcie-8k5:2ddr:3.3

xilinx:adm-pcie-ku3:2ddr:3.3

xilinx:xil-accel-rd-ku115:4ddr-xpr:4.0

xilinx:adm-pcie-ku3:2ddr-xpr:4.0

xilinx:adm-pcie-8k5:2ddr:4.0

xilinx:adm-pcie-7v3:1ddr:3.0

 

I also tried the "install.sh", however, it seems that it doesn't work.

The attachment is for your reference.

 

One possible reason might be: I install SDAccel 2016.2 and 2017.2 at the same time. That might cause some conflicts. Another fact is, the GUI works fine while the makefile fails.

 

Thanks

Jiandong.

0 Kudos
Highlighted
Visitor channinglan
Visitor
4,955 Views
Registered: ‎08-21-2017

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

in  makefile.mk

 

modify XDEVICE to

XDEVICE = xilinx_kcu1500_4ddr-xpr_4_0

 

 

build cpu and hw emulation is ok

View solution in original post

1,807 Views
Registered: ‎11-09-2016

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

Yeah, this works for me. but why????

0 Kudos
Xilinx Employee
Xilinx Employee
1,790 Views
Registered: ‎07-16-2008

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

It turns out the format of device name is changed from ":" separated to "_" separated from 2017.2_sdx release.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
1,779 Views
Registered: ‎11-09-2016

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

Yeah, it works after I change "xilinx:adm-pcie-7v3:1ddr:3.0" to "xilinx_adm-pcie-7v3_1ddr_3_0". Thanks,

0 Kudos
Explorer
Explorer
1,610 Views
Registered: ‎05-23-2017

Re: SDAccel 2017.2 + KCU1500: build ug1021 lab2 issue!! Error: Unable to find Target Device xilinx:kcu1500:4ddr-xpr:4.0

Jump to solution

@channinglan

Hi channinglan,

I also got a kcu1500 board. But has some problem.

 

Have you ever try the helloworld_ocl example on the https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/host/helloworld_ocl.

 

Does it work for your kcu1500?

 

Thanks 

0 Kudos