linux
how to install cudnn(from tar file)
from nvidia docs 2.3.1. Installing from a Tar File Navigate to your <cudnnpath> directory containing the cuDNN Tar file. Unzip the cuDNN package. $ tar -xzvf cudnn-9.0-linux-x64-v7.tgz Copy the following files into the CUDA Toolkit directory, and change the file permissions. $ sudo cp cuda/include/cudnn.h /usr/local/cuda/include $ sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 Read more…
error fix
downgrading cudnn version to match CUDA version
check current version of cudnn my current gpu uses CUDA10.0 which can be verified from nvidia-smi The current version of cudnn is meant for CUDA10.1. It seems that this somehow creates a conflict and I cannot load and run my model in tensorflow-gpu 1.13.1. In order to fix this, I Read more…
error fix
easy fix for bash script file unexpected end of file error
open with vi, and execute :set fileformat=unix and save the file. referred from here.
error fix
encountering “ModuleNotFoundError: No module named ‘_posixsubprocess'” error when running nvsysinfo
even confirming nvsysinfo is installed through apt, running nvsysinfo with sudo or even in root account produces the following error. I tried reinstalling subprocess32module but it did not fix the problem. However, checking out the nvsysinfo exec file which is a bash script file that practically launched a nvsysinfo.py file Read more…
linux
git hard reset on subdirectory of git repo
ref: https://stackoverflow.com/questions/15404535/how-to-git-reset-hard-a-subdirectory
data science
running jupyter notebook allowing external access and no authentication
learned from https://stackoverflow.com/questions/41159797/how-to-disable-password-request-for-a-jupyter-notebook-session
linux
installing latest nvidia driver in ubuntu
sometimes when in need of upgrading the nvidia driver in ubuntu to some latest versions, the desired version is not yet available in the vanilla PPAs is ubuntu. In my case, I needed to install nvidia driver 410 in order to work with the latest tensorflow release. Although there is Read more…
linux
allowing remote access to mysql db from anywhere
Change mysqld configuration Locate the mysql server configuration file. For me, it was under /etc/mysql/mysql.conf.d/mysqld.cnf As you can see above, comment out the bind-address option. This will allow access to mysql port from anywhere. Grant privilege to user coming from remote host If the user created a mysql account following Read more…