You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the call to cl::sycl::rsqrt in line 68 is changed to 1.f / cl::sycl::sqrt as there seems to be a missing symbol for the Alveo U200 emulation:
/tools/Xilinx/SDx/2018.3/data/emulation/unified/cpu_em/generic_pcie/model/genericpciemodel: symbol lookup error: /home/jstephan/Downloads/.run/8220/sw_emu/device0/binary_1/dltmp: undefined symbol: rsqrtf
With the current compiler and OpenCL runtime I am able to successfully run the program in sw_emu mode. When changing to hw_emu the compilation will crash:
$ clang++ -std=c++2a -fsycl -fsycl-targets=fpga64-xilinx-unknown-sycldevice nbody.cpp -o nbody.hw_emu -lOpenCL -I/opt/xilinx/xrt/include/
warning: Linking two modules of different data layouts: '/tools/Xilinx/SDx/2018.3/bin/../lnx64/lib/libspir64-39-hls.bc' is 'e-m:e-i64:64-i128:128-i256:256-i512:512-i1024:1024-i2048:2048-i4096:4096-n8:16:32:64-S128-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024' whereas 'llvm-link' is 'e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024'
warning: Linking two modules of different target triples: /tools/Xilinx/SDx/2018.3/bin/../lnx64/lib/libspir64-39-hls.bc' is 'fpga64-xilinx-none' whereas 'llvm-link' is 'spir64'
****** 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 jstephan@ite196 ~/Downloads
INFO: [XOCC 60-1306] Additional information associated with this xocc compile can be found at:
Reports: /home/jstephan/Downloads/_x/reports/x13642406682781150725
Log files: /home/jstephan/Downloads/_x/logs/x13642406682781150725
INFO: [XOCC 60-585] Compiling for hardware emulation target
Running SDx Rule Check Server on port:40935
INFO: [XOCC 60-895] Target platform: /opt/xilinx/platforms/xilinx_u200_xdma_201830_1/xilinx_u200_xdma_201830_1.xpfm
WARNING: [XOCC 74-49] Failed to read in file /tools/Xilinx/SDx/2018.3/platforms/achromatic during platform validation.
INFO: [XOCC 60-423] Target device: xilinx_u200_xdma_201830_1
INFO: [XOCC 60-242] Creating kernel: 'x13642406682781150725'
ERROR: [XOCC 17-1309] Gcc: #18 0x00007f47c721409b __libc_start_main /build/glibc-B9XfQf/glibc-2.28/csu/../csu/libc-start.c:308:16
ERROR: [XOCC 60-398] clang failed
ERROR: [XOCC 60-599] Kernel compilation failed to complete
ERROR: [XOCC 60-592] Failed to finish compilation
I'll try look into both issues after pull request #30 is merged in, the first issue relating to a missing math function may be related to this: #11 and a "quick fix" for it could be out of my hands.
The second issue I'm not so sure without testing on my machine (which I'll get around to asap) and tinkering a little. It looks like one of xocc's hw_emu specific passes is choking on some IR that's generated in the first kernels entry point though.
As always thanks for reporting the trouble you run into!
nice, thanks for the report! would it be possible to have a copy of the variation of the test that works so I can stick it into our very rudimentary regression suite? You could pull request it in if you'd like or just attach it here as a file when you get a chance and I can add it in.
This is not related to #22. I'm using the code from #28 with the following modifications:
discard_write
accesses are changed towrite
(see Missing access mode: discard_write #31)cl::sycl::rsqrt
in line 68 is changed to1.f / cl::sycl::sqrt
as there seems to be a missing symbol for the Alveo U200 emulation:With the current compiler and OpenCL runtime I am able to successfully run the program in
sw_emu
mode. When changing tohw_emu
the compilation will crash:The log file reports the following:
The text was updated successfully, but these errors were encountered: