Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makemex-GPU-sh not compiling/building #9

Closed
shomedas opened this issue Sep 19, 2015 · 7 comments
Closed

makemex-GPU-sh not compiling/building #9

shomedas opened this issue Sep 19, 2015 · 7 comments

Comments

@shomedas
Copy link

somoclu command line is working fine.(i tried the example:somoclu data/rgbs.txt data/rgbs. it worked fine.)

then i tried ./configure --without-mpi --with-cuda=/usr/local/cuda-6.5. then make, make install. it built fine. but when i try

  MEX_BIN="/usr/local/MATLAB/R2014a/bin/mex" ./makeMex-GPU.sh

I get error "Unknown file extension '.co'."
other details:
ubuntu 14.04, matlab2014a, gcc4.8.2, cuda-6.5, Nvidia-gt740

@xgdgsc
Copy link
Collaborator

xgdgsc commented Sep 19, 2015

try modify the script with mex -v to paste more information here. Have you modified CUDA_LIB="/opt/cuda/lib64" in the script to your /usr/local/cuda-6.5/lib?

@shomedas
Copy link
Author

makeMex-GPU.sh script:

#!/bin/sh
if [ -z "$MEX_BIN" ]
then MEX_BIN="/usr/local/MATLAB/R2013a/bin/mex"
fi
CUDA_LIB="/usr/local/cuda-6.5/lib64"
$MEX_BIN -I../ MexSomoclu.cpp -DCUDA ../denseCpuKernels.o ../io.o ../sparseCpuKernels.o ../training.o ../mapDistanceFunctions.o ../uMatrix.o ..
/denseGpuKernels.cu.co -lgomp -L$CUDA_LIB -lcudart -lcublas -lnvblas

trying to build mex-gpu:
MEX_BIN="/usr/local/MATLAB/R2014a/bin/mex" ./makeMex-GPU.sh
Verbose mode is on.
Unknown file extension '.co'.

do i have to run ./makemex-sh first?

@xgdgsc
Copy link
Collaborator

xgdgsc commented Sep 19, 2015

No, you don' t. I only tested the script with 2013a. I will test with 2014a later.

@peterwittek
Copy link
Owner

Did you have a chance to look into this? I also only have 2013a.

@xgdgsc
Copy link
Collaborator

xgdgsc commented Sep 25, 2015

As the referenced commit above, changing .co to .o works for 2014

@peterwittek
Copy link
Owner

I see, thanks. When you merge that branch, we can close this issue.

@peterwittek
Copy link
Owner

I checked the shell script. It should be fine, I am closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants