Torch Lua How Offical Install RTX 3060
My RTX 3060 and Ubuntu 18.04
Officially i used default ubuntu repositories, sudo ubuntu-drivers autoinstall and sudo apt install nvidia-cuda-toolkit
And torch7 is supported gcc6 and i didn't any uninstall operation. Just install gcc6!
sudo apt update && sudo apt install build-essential software-properties-common -y && sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt update && sudo apt install gcc-6 g++-6 -y && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && gcc -v
i didn't install any cuda toolkit from nvidia web sites or pytorch sites.
RTX3060 default compability sm_86! You can see this web site! But my nvcc --version is below, just type the terminal nvcc --version. You can see my cudatoolkit 9! This is supported by sm_70 compability.
-----------------------------------------------nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:07:56_CDT_2017 Cuda compilation tools, release 9.1, V9.1.85
-----------------------------------------------i used official torch7! In install-deps there is simple error.
You must change repository source! Search from google!Or quickly line 147, (sudo apt-get install -y python-software-properties)
change to (sudo apt-get install -y software-properties-common)And some changes in install.shJust two export lines!-----------------------------------------------#!/usr/bin/env bashSKIP_RC=0 BATCH_INSTALL=0 export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" export TORCH_CUDA_ARCH_LIST="7.0" THIS_DIR=$(cd $(dirname $0); pwd)
-----------------------------------------------So i use torch7!
Comments
Post a Comment