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

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 Kommentare

Hi Jai,
I am able to successfully generate code using GPU Coder for the "mySort" function with CUDA 9.1 and Visual C++ 2015 compiler. Can you share further details about the exact command you are using for codegen. Also, does codegen using GPU Coder for any other simple function work fine?
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 am 12 Dez. 2018
After setting required environment variables it is working all good.
Thanks Vandana for your support.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Get Started with GPU Coder finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Gefragt:

am 14 Nov. 2018

Kommentiert:

am 12 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by