how to set cuda path

11 vues (au cours des 30 derniers jours)
Kaushik
Kaushik le 11 Fév 2013
hi,
i have cuda toolkit 4.2 version and toolkit 5.0 installed in my computer.
in the environment variables the CUDA_PATH is set to toolkit 5.0.
in matlab i want the path variable to be set to toolkit version 4.2. How do i achieve this ? so when i do "nvmex file.cu" in the matlab command prompt all the necessary files (bin, include ) are picked up from toolkit version 4.2 directory.

Réponses (1)

Jason Ross
Jason Ross le 11 Fév 2013
Modifié(e) : Jason Ross le 11 Fév 2013
The way I would go about attempting something like this would be as follows:
  1. Delete any CUDA environment variables from your environment entirely.
  2. Create a script that sets up the environment for 4.2 or 5.0
  3. Run the script that sets up the environment
  4. Launch MATLAB from within this environment.
Places this could go weird:
  1. You can only have one version of the CUDA driver installed and active on your system. You could get into problems if they don't agree with the toolkit you are using.
  2. You may need to also alter the the system path in the setup script if you have references to nVidia directories in the path (you would need to clear them and re-set them)
I'd also recommend looking at nVidia's web site to see if they have guidance as to how to configure your system to have multiple toolkit versions installed, and if there any compatability configurations with the driver version and toolkit version.

Catégories

En savoir plus sur GPU Computing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by