Skip to content

Instantly share code, notes, and snippets.

View maxlevesque's full-sized avatar

Maximilien Levesque maxlevesque

View GitHub Profile
/* 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;
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
@maxlevesque
maxlevesque / build_gcc.sh
Last active May 3, 2024 23:53
how to build gcc from sources
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
@maxlevesque
maxlevesque / gist:99463a9ba27ff00d5f3a
Created March 18, 2015 11:10
bash command to compile latest lammps source
wget 'https://raw.githubusercontent.com/personalhpc/LAMMPS-Makefile-for-PersonalHPC/master/script_compilation' && sh script_compilation