sort() is not working as mentioned in its doc !!!!!

조회 수: 2 (최근 30일)
JAI PRAKASH
JAI PRAKASH 2018년 11월 14일
댓글: JAI PRAKASH 2018년 12월 12일
Hi
I want to use 'gpucoder.sort' feature newly included in 2018b. But I am getting below error:
I have GPU Coder, C/C++ compiler - Microsoft Visual C++ 2015 (C/C++), CUDA toolkit v9.1
I just tried the test mySort() function provided in gpucoder.sort webpage.
Can someone please guide me, what can be done to solve this.
Thank for consideration
  댓글 수: 3
JAI PRAKASH
JAI PRAKASH 2018년 12월 10일
Sorry for late reply. But I was retrying and conforming.
Wow this time it worked fine on windows 10.
But I tried the same on ubuntu 16.04 and it shows error.
>> codegen -config coder.gpuConfig('mex') -args {ones(1024,1024,'double')} -report mySort
------------------------------------------------------------------------
mySort_mex.sh: 13: ./setEnv.sh: /usr/include/c++/6.5.0: Permission denied
mySort_mex.sh: 13: ./setEnv.sh: /usr/include/c++/6.5.0/x86_64-linux-gnu: not found
mySort_mex.sh: 13: ./setEnv.sh: /usr/include/c++/6.5.0/backward: Permission denied
mySort_mex.sh: 13: ./setEnv.sh: %INCLUDE%: not found
mySort_mex.sh: 13: ./setEnv.sh: /usr/include/c++/6.5.0: Permission denied
mySort_mex.sh: 13: ./setEnv.sh: /usr/include/c++/6.5.0/x86_64-linux-gnu: not found
mySort_mex.sh: 13: ./setEnv.sh: /usr/include/c++/6.5.0/backward: Permission denied
mySort_mex.sh: 13: ./setEnv.sh: %INCLUDE%: not found
nvcc -c -rdc=true -Xcompiler -fPIC,-ansi,-fexceptions,-fno-omit-frame-pointer,-pthread -Xcudafe "--diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE -Wno-deprecated-declarations -arch sm_35 -I "/usr/local/MATLAB/R2018b/simulink/include" -I "/usr/local/MATLAB/R2018b/toolbox/shared/simtargets" -I "/media/pc-linux/J3884906379/Study/Polimi/Thesis/Prof\ Braghin/ImageManipulation/NewAlgorithmMatlab4-GPUsort/codegen/mex/mySort" -I "/media/pc-linux/J3884906379/Study/Polimi/Thesis/Prof\ Braghin/ImageManipulation/NewAlgorithmMatlab4-GPUsort" -I "./interface" -I "/usr/local/MATLAB/R2018b/extern/include" -I "." "mySort_data.cu"
/bin/sh: 1: nvcc: not found
gmake: *** [mySort_data.o] Error 127
------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for further details.
Code generation failed: View Error Report
Error using codegen
'mysort()' is the same function you can find on gpucoder.sort.
I have gcc 6.5 on ubuntu 16.04.
Note: GPU coder for simple functions is working fine on ubuntu.
Thanks again for consideration.
JAI PRAKASH
JAI PRAKASH 2018년 12월 12일
After setting required environment variables it is working all good.
Thanks Vandana for your support.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by