일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- gfortran
- Windows
- datascience
- mpi4py
- h5py
- c++
- Matplotlib
- vim
- polyglot
- Visual Studio
- HDF5
- HFS+
- cygwin
- MAC
- intel compiler
- jupyter
- openmp
- virtual
- hyperref
- arXiver
- tab space
- conda
- LaTeX
- Anaconda
- python
- GSL
- cython
- vi
- SSH
- portforwarding
- Today
- Total
목록c++ (2)
Astro Coke
source: https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp4_PointerReference.html Pointers, References and Dynamic Memory Allocation are the most powerful features in C/C++ language, which allows programmers to directly manipulate memory to efficiently manage the memory - the most critical and scarce resource in computer - for best performance. However, "pointer" is also the most complex and ..
gsl 은 c/c++ 의 science/math 패키지이다. homebrew 등을 이용하여 간단하게 설치할 수도 있지만 icc compiler 환경으로 인스톨을 하기 위해서는 소스파일을 컴파일하는 방법이 있다. 우선 최신 버전의 패키지를 https://www.gnu.org/software/gsl/ 에서 다운을 받은 후 압축을 풀고 폴더로 가서 다음과 같이 설정 후 설치한다. > export CC=icc > CFLAGS="-O2 -m64 -mieee-fp -march=core2 -mtune=core2 -Wpointer-arith -fno-strict-aliasing "; export CFLAGS > ./configure > make 설치 후 테스트는 다음과 같다. > make --jobs=4 > make ..