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

1 回表示 (過去 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 Center および File ExchangeBuild Configuration についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by