This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |
# using GCC | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | |
# using Clang | |
#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") | |
# using Intel C++ | |
#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") | |
# using Visual Studio C++ | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI") | |
# using PGI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom lib home | |
export LIB_HOME=/home/lisanhu/mine/lib; | |
# Normal lib config | |
export PATH=$LIB_HOME/bin:$PATH; | |
export CPATH=$LIB_HOME/include:$CPATH; | |
export MANPATH=$MANPATH:$LIB_HOME/share/man; | |
export LIBRARY_PATH=$LIB_HOME/lib:$LIBRARY_PATH; # for static libraries | |
export LD_LIBRARY_PATH=$LIB_HOME/lib:$LD_LIBRARY_PATH; # for dynamic libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A test code to test whether PGI compiler is successfully installed and configured | |
* for openacc code. | |
* | |
* Origin: https://www.olcf.ornl.gov/tutorials/openacc-vector-addition/ | |
* | |
* Minor changes to print out information when data initialization on host is done | |
* Compile the code with command line: `pgcc -Minfo -ta=tesla openacc_test.c -o test.out` | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default.custom.yaml | |
# save it to: | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
patch: | |
schema_list: | |
- schema: luna_pinyin # 朙月拼音 | |
- schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pre-install environment variables | |
export PGI_SILENT=true; | |
export PGI_ACCEPT_EULA=accept; | |
export PGI_INSTALL_DIR=~/opt/pgi; | |
export PGI_INSTALL_TYPE=single; | |
export PGI_INSTALL_NVIDIA=false; # For systems without NVIDIA or pre-installed CUDA | |
# Post-install environment settings | |
export PGI=~/opt/pgi; # Note: this is the custom installation folder instead of the default /opt/pgi | |
export PGI_ARCH=linux86-64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# origin at https://www.cyberciti.biz/faq/how-to-check-os-version-in-linux-command-line/ | |
cat /etc/os-release | |
lsb_release -a | |
hostnamectl | |
uname -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip list --format freeze | cut -f 1 -d = | xargs pip install --upgrade |
NewerOlder