Coder Social home page Coder Social logo

Comments (6)

tmcdonell avatar tmcdonell commented on July 22, 2024

This is strange that you needed to specify the stubs directory. It looks like that is an internal directory that we shouldn't need to worry about...

Which Linux distro are you running? Which version of the CUDA package are you having problems with (i.e. from hackage or github)? I just installed both versions on a Ubuntu 14.04 box with CUDA-7.5 without problems.

from cuda.

mkloczko avatar mkloczko commented on July 22, 2024

Thank you for your response.

I've forgot to add - I am installing the runfile for Fedora 21 on Fedora 22. The cuda package was from github (version 0.7.0.0)

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Do you have to add the stubs directory when you use nvcc normally? Perhaps build one of the sample programs from the CUDA SDK and show us the log, so we can see what flags the makefiles used.

from cuda.

mkloczko avatar mkloczko commented on July 22, 2024

There is no need to add stubs directory when using nvcc.

The log for compiling volumeRender is:

"/usr/local/cuda-7.5"/bin/nvcc -ccbin g++ -I../../common/inc  -m64    -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 -o volumeRender.o -c volumeRender.cpp
"/usr/local/cuda-7.5"/bin/nvcc -ccbin g++ -I../../common/inc  -m64    -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 -o volumeRender_kernel.o -c volumeRender_kernel.cu
"/usr/local/cuda-7.5"/bin/nvcc -ccbin g++   -m64      -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 -o volumeRender volumeRender.o volumeRender_kernel.o  -L../../common/lib/linux/x86_64 -L/usr/lib64/nvidia -lGL -lGLU -lX11 -lglut -lGLEW
mkdir -p ../../bin/x86_64/linux/release
cp volumeRender ../../bin/x86_64/linux/release

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Does your installation happen to include a pkg-config file? It might be in /usr/local/cuda-7.5/lib64/pkgconfig. If so can you post its contents for me?

Looking at this again, the need to add -L/usr/lib64/nvidia is a bit suspicious to me, and adding the stubs dir might have indirectly pointed you to the right place (or perhaps the other way around). The pkg-config file might have more information.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Closing as inactive.

from cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.