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
#!/usr/bin/env bash | |
# complete installation walk through for Dalton 2013 with GNU and OpenMPI on Ubuntu 12.04 x86_64 | |
# ADAPT: location where we want Dalton installed | |
# we assume that the Dalton tarball is in there | |
DALTON_PATH=$HOME/dalton | |
# ADAPT: location where we want OpenMPI installed | |
OPENMPI_PATH=$HOME/openmpi |
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
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
#------------------------------------------------------------------------------ | |
# step 1: bootstrap a venv out of almost nothing | |
#------------------------------------------------------------------------------ | |
# temporary directory, will be erased after we are done | |
TEMP_DIR=`mktemp -d` |
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
// Copyright (c) 2015 Radovan Bast | |
// Licensed under the MIT license - http://opensource.org/licenses/MIT | |
#include <stdio.h> | |
#include <mpi.h> | |
int main (int argc, char *argv[]) | |
{ | |
int rank, comm_size; |
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
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
from pylab import * | |
def get_amdahl(p, n): | |
s = 1.0/((1.0 - p) + (p/n)) | |
return s |
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
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
module add gnu/4.6.3 cmake/2.8.10 | |
module add intel mkl intelmpi | |
./setup --fc=mpiifort --cc=mpiicc --cxx=mpiicpc --mkl=parallel --omp | |
cd build | |
make |
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
program shmem_mpi | |
! this is a hello world example based on code examples | |
! by Jeff Hammond and Jonathan Vincent (big thanks to them) | |
! in this example master allocates and fills an array with "twos" and then | |
! each rank prints the sum of all ements, each rank should print 200.0 | |
use mpi | |
use, intrinsic :: iso_c_binding |
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
// Copyright (c) 2015 Radovan Bast | |
// Licensed under the MIT license - http://opensource.org/licenses/MIT | |
__global__ void foo_kernel(int n, | |
double *a, | |
double *b, | |
double *c) | |
{ | |
int tid = threadIdx.x + blockIdx.x*blockDim.x; |
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
#!/usr/bin/env python | |
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
import time | |
import calendar | |
import os | |
release_time = calendar.timegm(time.gmtime()) |
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
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
import sys | |
import pylab as pl | |
file_name = sys.argv[1] | |
with open(file_name, 'r') as f: | |
lines = f.readlines() |
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
#!/usr/bin/env bash | |
# complete installation walkthru for DIRAC14 | |
# with GNU and OpenMPI (64bit-integers) | |
# on Ubuntu 14.04 x86_64 | |
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
# ADAPT locations: |
OlderNewer