본문 바로가기

TIL3

Google Colab Setting - conda & terminal In [13]: from IPython.core.display import display, HTML display(HTML("")) View Source Google Drive Mount¶ In [ ]: from google.colab import drive drive.mount('/content/drive') Check GPU¶ In [ ]: gpu_info = !nvidia-smi gpu_info = '\n'.join(gpu_info) if gpu_info.find('failed') >= 0: print('Not connected to a GPU') else: print(gpu_info) Sun Apr 24 03:06:53 2022 +-----.. 2022. 4. 26.
CUDA_HOME environment variable is not set. Please set it to your CUDA install root for pytorch cpp extensions 1. Probelm Description - Mostly, this error comes from not setting path for nvcc - so first check the nvcc using `nvcc --version` - nvidia-smi is not related # nvidia-smi command works fine You can't use 'macro parameter character #' in math mode nvcc --version 2. Solution - setting correct path in ~/.bashrc or ~/.zshrc depending on shell you are using $ vi ~/.zshrc # adding below at the end of script # export P.. 2022. 4. 24.
Git multiple accounts / 깃 다중 계정 Git Multiple Account Management 1. ssh generation ssh-keygen -t rsa -C "user1@naver.com" -f "work" ssh-keygen -t rsa -C "user2@gmail.com" -f "private" 2. Adding public key to each Git accounts pbcopy < ~/.ssh/work.pub pbcopy < ~/.ssh/private.pub 3. Register each ssh entries to ssh-agent # Check Currnet Entries You can't use 'macro parameter character #' in math mode ssh-add ~/.ssh/work $ ssh-add ~/.ssh/private 4. Editin.. 2022. 4. 13.