Skip to content

Repository files navigation

In WSL, use:

export MKLROOT=/opt/intel/oneapi/mkl/latest

to set path of Intel MKL; Use:

g++ *.cpp -lstdc++fs -pthread -DMKL_ILP64 -I"${MKLROOT}/include" -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -ldl

to compile; Notice the version of EIGEN MUST BE 3.3.9;

Use:

sudo chown -R yaminocellist:yaminocellist Partially\ unfolding\ nucleosomes

to unlock permission of the folder;

For Mac M1 users, first detach

define EIGEN_USE_MKL_ALL

into:

define EIGEN_USE_BLAS; define EIGEN_USE_MKL_VML

which leaves LAPACK unused which seems to be trivial for this program, then do similarly:

export MKLROOT=/opt/intel/oneapi/mkl/latest

finally compile with these link lines:

g++ *.cpp -DMKL_ILP64 -m64 -I"${MKLROOT}/include" ${MKLROOT}/lib/libmkl_intel_ilp64.a ${MKLROOT}/lib/libmkl_intel_thread.a ${MKLROOT}/lib/libmkl_core.a -framework Accelerate /opt/local/lib/lapack/liblapacke.dylib -I/opt/homebrew/Cellar/boost/1.80.0/include -std=c++14

For batch mode, Eigen 3.3.9 is installed at:

/lustre/home/yqguo/usr/local/include/eigen3

BOOST is installed at:

/lustre/home/yqguo/include/

Thus the makefile should be:

g++ *.cpp -I/lustre/home/yqguo/usr/local/include/ -I/lustre/home/yqguo/include/ -lstdc++fs -o bare_slurm.out -fopenmp

Before compile it, load several modules first:

module load gcc/11.2.0
module load intel_mpi/2020_u1
module load openmpi/openmpi-4.1.1-slurm

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages