Showing posts with label nvcc. Show all posts
Showing posts with label nvcc. Show all posts

8/22/2024

hpcc install on cuda system. version 2

Please following the process

1. First, add the ROCm repository (if you haven't already):
wget -qO - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | sudo tee /etc/apt/sources.list.d/rocm.list

2. Update your package list:
sudo apt update

3. Install only the HIP compiler and development tools:
sudo apt install hip-base hip-doc
This should install the basic HIP tools without the full runtime that caused issues before.

4. After installation, add the HIP binaries to your PATH. Add this line to your ~/.bashrc file:
export PATH=$PATH:/opt/rocm/bin

5. Then, apply the changes:
source ~/.bashrc

6. Verify the installation:
hipcc --version

1/06/2015

nvcc : fatal error : Could not set up the environment for Microsoft Visual Studio using 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/Bin/../../VC/Bin/vcvars32.bat

I met the error message when I build opencv+cuda.

In past, I am solved by this method -> http://feelmare.blogspot.kr/2014/08/nvcc-fatal-error-could-not-set-up.html

But this is different method.

In conclusion, the error is because PATH problem in the environment variable.

vcvars32.bat do not work properly because using of wrong PATH value.

So nvcc environment error is occurred.




Try checking the value of the PATH in the user and system variables

Normal format is path;path;path.... .
(In my case, " caused the error C:\Python27\Lib";C:\Program Files (x86)\Google\google_appengine\ )

If the value of PATH in system variables did not included "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" and 
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin", add these path.

and in cmd window, run vcvars32.bat. If there is no response text, it is normal.

and check one more, run cl.exe in cmd window.

this is wrong result. 


good luck.


8/06/2014

nvcc : fatal error : Could not set up the environment for Microsoft Visual Studio using ...

I meet this error when I complie opencv + cuda.



I have tried hundreds of times to solve this problem.
I tried opencv 2.4.8 + cuda 5.5 + vs 2012
opencv 2.4.8 + cuda 6 + vs 2012
opencv 2.4.9 + cuda 5.5 + vs 2012
opencv 2.4.9 + cuda 6 + vs 2012
opencv 2.4.9 + cuda 6 + vs 2013.

when I almost dead, I find solution.
It is solution.
Open "nvcc.profile" by text editor.
This file may be located in "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin" (in my case)
And add this setense
CUDA_NVCC_FLAGS += --compiler-bindir = "-IE:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin"

so this figure is all contents of nvcc.profile.




I am happy to notice this tip to world.
^^