GPUDirect: CUDA aware MPI

http://keeneland.gatech.edu/software/gpudirect https://www.olcf.ornl.gov/tutorials/gpudirect-mpich-enabled-cuda/ CUDA C direct.cpp #include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <mpi.h> int main( int argc, char** argv ) {     MPI_Init (&argc, &argv);     int direct;     int rank, size;     int *h_buff = NULL;     int *d_rank = NULL;     int *d_buff =

gpu cpu affinity

http://stackoverflow.com/questions/16056800/multi-gpu-programming-using-cuda-on-a-numa-machine #!/bin/bash #this script will output a listing of each GPU and it’s CPU core affinity mask file=”/proc/driver/nvidia/gpus/0/information” if [ ! -e $file ]; then echo “Unable to locate any GPUs!” else gpu_num=0 file=”/proc/driver/nvidia/gpus/$gpu_num/information” if [ “-v” == “$1” ];

Avoid escape characters in GIT

http://michael.otacoo.com/linux-2/avoid-escape-characters-in-git/ The first one is to change the pager to “more”. git config –global core.pager more The second one is to append an additional command with “less -r”. git diff –color | less -r git log -p –color | less