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
wget 'https://raw.githubusercontent.com/personalhpc/LAMMPS-Makefile-for-PersonalHPC/master/script_compilation' && sh script_compilation |
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
sudo apt install libgmp-dev libmpc-dev libisl-dev libmpfr-dev | |
# change 6.3 to anything you'd like | |
wget http://mirrors-usa.go-parts.com/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.bz2 | |
tar jxvf gcc-6.3.0.tar.bz2 | |
mkdir objdir | |
cd objdir | |
# change /tmp/mygcc6.3 to any output folder you'd like | |
../gcc-6.3.0/configure --prefix=/tmp/mygcc6.3 --disable-multilib --disable-werror | |
make -j | |
make install |
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
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /bin/mkdir -p | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes | |
checking whether make supports nested variables... yes | |
checking whether to enable maintainer-specific portions of Makefiles... no | |
checking for xlC_r... no | |
checking for xlC... no | |
checking for FCCpx... no |
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
/* 2D */ | |
KOKKOS_INLINE_FUNCTION | |
void index2coord(int index, int &i, int &j, int Nx, int Ny) | |
{ | |
UNUSED(Nx); | |
UNUSED(Ny); | |
#ifdef KOKKOS_ENABLE_CUDA | |
j = index / Nx; |