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

2 views (last 30 days)
JAI PRAKASH
JAI PRAKASH on 14 Nov 2018
Commented: JAI PRAKASH on 12 Dec 2018
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 Comments
JAI PRAKASH
JAI PRAKASH on 10 Dec 2018
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 on 12 Dec 2018
After setting required environment variables it is working all good.
Thanks Vandana for your support.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!