사용환경

  • ubuntu 20.04 
  • Ryzen 9, nvidia RTX 2080ti

 

CUDA

# check whether driver is up-to-date
$ nvidia-smi 
Mon May  4 14:30:03 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 208...  Off  | 00000000:08:00.0  On |                  N/A |
| 35%   32C    P8    21W / 260W |    254MiB / 11016MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1242      G   /usr/lib/xorg/Xorg                           114MiB |
|    0      1867      G   /usr/bin/gnome-shell                         110MiB |
|    0     11254      G   /opt/teamviewer/tv_bin/TeamViewer             26MiB |
+-----------------------------------------------------------------------------+

# install cuda toolkit
$ sudo apt install nvidia-cuda-toolkit

# Check your CUDA version
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

 

gromacs (2020.2)

# first of all install prequisites
$ sudo apt install build-essential
$ sudo apt install cmake
# currently gcc version (ubuntu 20.04 by default 9) need to be old (i.e. 8) to install CUDA
$ sudo apt -y install gcc-8 g++-8
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
$ sudo update-alternatives --config gcc
$ sudo update-alternatives --config g++
$ gcc --version
gcc (Ubuntu 8.4.0-3ubuntu2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++ --version
g++ (Ubuntu 8.4.0-3ubuntu2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

http://manual.gromacs.org/documentation/current/install-guide/index.html#quick-and-dirty-cluster-installation

# now install gromacs
$ tar xfz gromacs-2020.2.tar.gz
$ cd gromacs-2020.2
$ mkdir build
$ cd build
$ cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=ON
$ make
$ make check
$ sudo make install
$ source /usr/local/gromacs/bin/GMXRC

 

Posted by k3mi5t
:

On Mediawiki upload module checks mime types.

OPJ extension is blocked  - actually not listed


To upload opj, edit $mediawiki/includes/mime.types

Near the end search 


chemical/x-mdl-rgfile rg


Then add opj at the end of the line like

chemical/x-mdl-rgfile rg opj


In this way you can upload opj files.

Posted by k3mi5t
:

Rocket Chat 한글 대화방

Clip 2017. 10. 28. 14:19 |

rocket chat

How to make chat room name in nonalphabetical language? or 16 byte characters like Chinese, Japanese, Korean



채팅 프로그램인 로켓챗에서 방이름을 한글로 만들고 싶을 때에는...


Administration > General > UTF8


와 같은 옵션에서


fill in UTF8 Names Validation


[ㄱ-ㅣ가-힣0-9a-zA-Z-_.]+


위와 같은 정규표현식을 넣습니다.

끝!

Posted by k3mi5t
:

DNA 오리가미 (origami) 디자인에 쓰이는 소프트웨어 사용을 위한 기초 매뉴얼을 작성하여 업로드합니다.

작성자: 유혜진 (부경대 화학과)

지도: 곽민석 (부경대 화학과)



NBS - caDNAno instruction (151119).pdf



0123456789101112131415161718


Posted by k3mi5t
:

LaTeX 맥에서 한글사용


http://kenshin579.tistory.com/entry/Latex-on-Mac 를 참조하여 오타나 버젼 정보 등을 업데이트 하였습니다.

참고로 위 블로그에서 국내 학위논문 템플릿도 내려받을 수 있습니다.


(1) 기본 tex 패키지 인스톨 - http://www.tug.org/mactex/

최신 버젼 (글 쓴날 현재 2012) MacTex 패키지(약 2GB)를 다운 받아 설치


(2) http://cl.ly/2B2f2F3f2d2H 에서 texmf 다운받아 압축을 푼 후에 폴더 자체를 라이브러리에 카피


# sudo mv texmf ~/Library/texmf 


(2) kotex 인스톨 후 기타 파일 처리

repository의 버젼을 확인(http://ftp.ktug.org/KTUG/texlive/)하여 끝에 숫자를 바꿔줍니다.

 # sudo tlmgr --repository=http://ftp.ktug.or.kr/KTUG/texlive/2012 install collection-kotex

tlmgr: package repository http://ftp.ktug.org/KTUG/texlive/2012

[1/9, ??:??/??:??] install: kotex [4062k]

[2/9, 00:12/02:31] install: kotex-base [45932k]

[3/9, 01:39/01:41] install: kotex-dev [316k]

[4/9, 01:42/01:43] install: kotex-utils.universal-darwin [9k]

[5/9, 01:44/01:45] install: kotex-utils.x86_64-darwin [5k]

[6/9, 01:45/01:46] install: kotex-utils [63k]

[7/9, 01:49/01:50] install: luatexko [471k]

[8/9, 01:53/01:53] install: xetexko [340k]

[9/9, 01:57/01:57] install: collection-kotex [1k]

tlmgr: package log updated at /usr/local/texlive/2012/texmf-var/web2c/tlmgr.log

running mktexlsr ...

done running mktexlsr.

running mtxrun --generate ...

done running mtxrun --generate.

running updmap-sys ...

done running updmap-sys.

# sudo vim /usr/local/texlive/2012/texmf.cnf

맨 마지막 줄에 아래 내용을 추가합니다.

OSFONTDIR = {~/Library/Fonts;/Library/Fonts;/System/Library/Fonts}

# sudo texhash

texhash: Updating /usr/local/texlive/2012/../texmf-local/ls-R... 

texhash: Updating /usr/local/texlive/2012/texmf/ls-R... 

texhash: Updating /usr/local/texlive/2012/texmf-config/ls-R... 

texhash: Updating /usr/local/texlive/2012/texmf-dist/ls-R... 

texhash: Updating /usr/local/texlive/2012/texmf-var/ls-R... 

texhash: Done.

# sudo updmap-sys --enable Map=kotex-base.map

# sudo updmap-sys --enable Map=kotex-extra.map

에러메세지만 안나오면 됩니다.





Posted by k3mi5t
: