Contents

Linux envrionment

Linux tutorial

bolg

Video tutorial

Ubuntu

CentOS




Fortran

tutorial

-[Fortran Tuto 2] Basics about variables

doc




Python

anaconda

install

1
2
  wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
  bash Anaconda3-2020.11-Linux-x86_64.sh

tutorial

numpy

doc NumPy 官网 http://www.numpy.org/
NumPy 源代码:https://github.com/numpy/numpy
SciPy 官网:https://www.scipy.org/
SciPy 源代码:https://github.com/scipy/scipy
Matplotlib 官网:https://matplotlib.org/
Matplotlib 源代码:https://github.com/matplotlib/matplotlib

NumPy官方文档
https://numpy.org/doc/stable/user/whatisnumpy.html

runoob
https://www.runoob.com/numpy/numpy-tutorial.html

from-python-to-numpy
https://www.labri.fr/perso/nrougier/from-python-to-numpy




julia

https://docs.julialang.org/en/v1/

https://www.youtube.com/c/TheJuliaLanguage/videos

install julia

  1. download from https://julialang.org/downloads/
  2. decompress
1
2
tar zxf julia-1.6.0-linux-x86_64.tar.gz 
cd julia-1.6.0

env

1
export PATH=~/julia-1.6.0/bin/:$PATH

test

1
2
#!/usr/bin/env julia
println("Greetings! 你好! こんにちわ! 안녕하세요?")

install packages

1
2
3
4
5
6
7
8
9
julia   # activate julia env

using Pkg
Pkg.add("Plots")
Pkg.add("PyPlot")

Pkg.update()
Pkg.update("Plots")
Pkg.rm("Plots")

tutorial




java

Java SE Development Kit 15 Downloads




git

tutorial




complier

Intel oneAPI Base Toolkit

Intel oneAPI is the new version for free and the old version is intel parallel studio.

Document

Download from

Release Notes

Installation

Compiler

MPI Libarary

Others

pre-install

  • MacOS

    Install Xcode, then go to developer.apple.com and download Command Line Tools for your Xcode version.

  • Windows

    Install latest Visual Studio Community edition

install

1
2
3
4
5
6
7
sudo sh ./<installer>.sh     #launch the GUI Installer as the root 
sh ./<installer>.sh          #launch the GUI Installer as the current user

#default location
/opt/intel/oneapi

C:\Program Files (x86)\Intel\oneAPI
  1. install the oneAPI Base Toolkit with these options
    threaded building blocks
    C++ compiler
    C++ Library
    Math Kernal Library
    (optional) GDB debugger
  2. Install the oneAPI HPC toolkit with these options
    Intel MPI library
    Intel C++ compiler
    Intel Fortran compiler

env set

For Intel oneAPI

  • linux

永久生效:vi /etc/profile or vi ~/.bashrc

1
2
3
source ~/intel/oneapi/setvars.sh intel64
or
source /opt/intel/oneapi/setvars.sh

临时使用 terminal:

1
2
3
4
5
source /opt/intel/oneapi/setvars.sh
or
. /opt/intel/oneapi/setvars.sh
or
~/intel/oneapi/setvars.sh
  • Windows
    OneAPI command prompt is installed in Start menu. Or run setvars.bat

  • MacOS

1
. /opt/intel/oneapi/setvars.sh

For the intel parallel studio 2020

1
2
3
4
5
source /opt/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/bin/mpivars.sh intel64

or bashrc:
export PATH=$PATH:/opt/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/bin
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/lib

For the intel parallel studio 2018

1
2
export PATH=$PATH:/opt/intel/impi/2018.0.128/bin64
export LD_LIBRARY_PATH=/opt/intel/impi/2018.0.128/lib64

test

1
2
mpiicc -o test  test.c
mpirun -r ssh -f mpd.hosts -n <Number of processes>  ./test
error and solution

Errors like stdio.h isn’t found

be sure you’ve installed Xcode Command Line Tools.

reference

GCC

CMake

intel Intrinsics