Skip to content

Instantly share code, notes, and snippets.

View psychocoderHPC's full-sized avatar
💭
Covid19 Sucks

René Widera psychocoderHPC

💭
Covid19 Sucks
View GitHub Profile
@psychocoderHPC
psychocoderHPC / vPythonEnv.txt
Last active December 2, 2015 09:17
virtual python environment [matplotlib, no X-window]
Solution to solve that matplot lib not show any X window in a virtual python environment
follow the [embedded guid](https://github.com/ComputationalRadiationPhysics/picongpu/blob/dev/src/picongpu/submit/titan-ornl/pythonOnRhea.profile.example)
- cd ~/lib
- mkdir -p python-venv
- cd python-venv
- virtualenv hypnos2.7.10
- source ~/lib/python-venv/hypnos/bin/activate
- which pip

This little code snipped messure the performance for adios write/read and verify the results.

compile no transform: mpic++ -std=c++11 main.cpp -I$ADIOS_ROOT/include -L$MPI_ROOT/lib -L$ADIOS_ROOT/lib   -ladios -ladiosread -L$LZ4_ROOT/lib -llz4 -lz -DADIOS_TRANSFORM=\"none\"

compile with LZ4 transform: mpic++ -std=c++11 main.cpp -I$ADIOS_ROOT/include -L$MPI_ROOT/lib -L$ADIOS_ROOT/lib   -ladios -ladiosread -L$LZ4_ROOT/lib -llz4 -lz -DADIOS_TRANSFORM=\"lz4:threshold=2048,lvl=9\"

#include <iostream>
#include <chrono>  
#include <vector>
04555f73ccefe3b9b4bdde1a90a64209d41a285211dfc6ff3d889c7da75ec5bf33d3c12e00abc21e632a990ce49b8dc6b092b32a30e503197c37d02b4ec6bb3026
#include <cuda_runtime.h>
#include <iostream>
int main()
{
cudaDeviceProp props;
cudaGetDeviceProperties(&props, 0);
std::cout<<props.major<<props.minor<<" smxcount "<<props.multiProcessorCount<<std::endl;
#include <mpi.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define H5S_MAX_MPI_COUNT 536870911
static MPI_Aint bigio_count = H5S_MAX_MPI_COUNT;
#define MPI_CHECK(cmd) {int error = cmd; if(error!=MPI_SUCCESS){printf("%s %i %d\n""[MPI] Error code ", error,__LINE__);}}

Keybase proof

I hereby claim:

  • I am psychocoderhpc on github.
  • I am psychocoder (https://keybase.io/psychocoder) on keybase.
  • I have a public key ASBzDqczn01lyEUvIaQsc0fDq-TGfhPlcP1fSD16V_XYxgo

To claim this, I am signing this object:

#!/bin/bash
# IMPORTANT: The script is currently not checking for compile time errors
#
# issue I have:
# HIP - https://github.com/ROCm-Developer-Tools/HIP/blob/5f1420a229b41662f1f3f178de56daa10028d39c/CMakeLists.txt#L317-L318
# both lines must be removed because cmake says `hiprtc is not defined`
#
# rocprofiler (clang issue):
# - /src/core/intercept_queue.h and /src/core/intercept_queue.cpp
# `static std::atomic dispatch_callback_;` must be `static volatile std::atomic dispatch_callback_;`
#last update 05.11.2021
module load craype-accel-amd-gfx908
module load rocm/4.3.0
module load git/2.31.1
module load cmake/3.20.2
module load boost/1.73.0
module load c-blosc/1.21.0
module load cray-python/3.8.5.1
module load hdf5/1.10.7 # dependency of openpmd-api module (no other possible)
spack install gcc@11.3.0
spack install cmake@3.25.2
spack install --reuse cmake@3.25.2 %gcc@11.3.0
spack load cmake@3.25.2 %gcc@11.3.0
spack install cuda@12.0.0
spack load cuda@12.0.0
echo "openpmd-api:"
spack install --reuse openpmd-api@0.14.5 %gcc@11.3.0 \