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 otod3r
Observer
416 Views
Registered: ‎02-21-2013

Data motion generation exited with return code -2

Hi all!

 

When trying to  build a SDSoC project, I get the following error:

 

INFO: [DMAnalysis 83-4497] Analyzing callers to hardware accelerators...
WARNING: [DMAnalysis 83-4439] Cannot determine data size for argument 0 of call 'XiDeconvTop' in 'dnn_wrapper.cpp' @83 (async_id:5) (resource id:-1)\n
WARNING: [DMAnalysis 83-4439] Cannot determine data size for argument 1 of call 'XiDeconvTop' in 'dnn_wrapper.cpp' @83 (async_id:5) (resource id:-1)\n
WARNING: [DMAnalysis 83-4439] Cannot determine data size for argument 2 of call 'XiDeconvTop' in 'dnn_wrapper.cpp' @83 (async_id:5) (resource id:-1)\n
WARNING: [DMAnalysis 83-4439] Cannot determine data size for argument 3 of call 'XiDeconvTop' in 'dnn_wrapper.cpp' @83 (async_id:5) (resource id:-1)\n
WARNING: [DMAnalysis 83-4439] Cannot determine data size for argument 4 of call 'XiDeconvTop' in 'dnn_wrapper.cpp' @83 (async_id:5) (resource id:-1)\n
INFO: [DMAnalysis 83-4444] Scheduling data transfer graph for partition 0
Assertion failed in "ResourceManager.cpp", line 363
#0 0x000000000129cef5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt+0x129cef5)
#1 0x000000000129af1e llvm::sys::RunSignalHandlers() (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt+0x129af1e)
#2 0x000000000129b042 SignalHandler(int) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt+0x129b042)
#3 0x00007f9154ce5390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00007f9153851428 gsignal /build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007f915385302a abort /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007f9153570953 ResourceManager::bindSystemPort(ResourceInst*, ChoiceInterval*) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0xb5953)
#7 0x00007f9153571e57 ResourceManager::schedule(ChoiceInterval*, unsigned long long) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0xb6e57)
#8 0x00007f9153507e0e DataTransfer::schedule(std::__cxx11::list<DataTransfer*, std::allocator<DataTransfer*> >, std::__cxx11::list<DataTransfer*, std::allocator<DataTransfer*> >, ResourceManager*) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0x4ce0e)
#9 0x00007f915353a3ab DataTransferGraph::scheduleAndBind(ResourceManager*) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0x7f3ab)
#10 0x00007f915353a905 DataTransferGraph::scheduleDataTransferGraph(ResourceManager*, int) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0x7f905)
#11 0x00007f9153574ce7 DataMotion::createAndScheduleDTG(int) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0xb9ce7)
#12 0x00007f91535614af DataMove::generateHWSW(bool, bool, int) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0xa64af)
#13 0x00007f91535199ef (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so+0x5e9ef)
#14 0x0000000000e86094 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt+0xe86094)
#15 0x00000000005ff0a3 main (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt+0x5ff0a3)
#16 0x00007f915383c830 __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#17 0x0000000000642e99 _start (/home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt+0x642e99)
Stack dump:
0. Program arguments: /home/otod3r/Public/Xilinx/SDx/2017.4/bin/../llvm-clang/lnx64/llvm/bin/opt -load /home/otod3r/Public/Xilinx/SDx/2017.4/bin/../lib/lnx64.o/XidanePass.so -disable-output -mem2reg -basicaa -XidanePass --platform zcu102_base_trd --dmclkid 2 --repo /home/otod3r/test/rdf0421-zcu102-base-trd-2017-4/apu/video_app/filter2d_sds/Release/_sds/.cdb/xd_ip_db.xml --dmdb /home/otod3r/Public/Xilinx/SDx/2017.4/data/DM.db -os linux -processor cortex-a53
1. Running pass 'Data motion analysis and network generation' on module '<stdin>'.
Aborted (core dumped)
make: *** [libfilter2d_sds.so] Error 1
/home/otod3r/Public/Xilinx/SDx/2017.4/bin/XidanePass: 17: exit: Illegal number: -1
Data motion generation exited with return code -2
- exited unexpectedly

 

 

Anyone knows what I'm doing wrong?

 

Thanks!

0 Kudos
1 Reply
Teacher xilinxacct
Teacher
261 Views
Registered: ‎10-23-2018

Re: Data motion generation exited with return code -2

@otod3r

For arrays passed as pointer typed arguments to hardware, sometimes the size cannot be inferred... they issue the message you mentioned..

Use the following to specify the size of the data to be transferred.
#pragma SDS data copy(p[0:<array_size>]) // for example, int *p

Hope that helps

If so, please mark as 'solution accepted' to close the issue

0 Kudos