Skip to content

Instantly share code, notes, and snippets.

@jgphpc
jgphpc / 01_readme.md
Last active September 1, 2025 06:54
map + nccl
@jgphpc
jgphpc / xthi.c
Created June 6, 2025 17:35
xthi cpu
#ifndef USE_NVML
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sched.h>
//#include <mpi.h>
#include <omp.h>
@jgphpc
jgphpc / 478.tar.gz
Last active March 4, 2025 13:44
2025 sma
@jgphpc
jgphpc / infanzia.md
Created December 4, 2024 06:52
infanzia
@jgphpc
jgphpc / 0.cpp
Last active April 12, 2024 09:20
Error while looking for matching xmethod workers defined in Python
#include <iostream>
#include <string>
#include <vector>
#include "particles_data.hpp"
int main(int argc, char** argv)
{
// g++ -O0 -g -std=c++20 0.cpp
// <Error while looking for matching xmethod workers defined in Python.>
@jgphpc
jgphpc / readme.md
Created June 14, 2023 19:26
pmt + craypm

build

branch: cray commit: da984848b2c6a84981cfb0d28646d0b8a9ab1e6b

step1

cmake -S pmt.git -B build_pmt_cpu_xc -DCMAKE_INSTALL_PREFIX=pmt_cpu_xc -DCMAKE_BUILD_TYPE=Release

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Cray Programming Environment 2.7.19 C
@jgphpc
jgphpc / CUDA_Compilers.md
Created June 13, 2023 07:41 — forked from ax3l/CUDA_Compilers.md
CUDA Compilers
@jgphpc
jgphpc / spack-buildcache.md
Created April 25, 2023 19:31
spack buildcache

Create key

  • spack gpg create --comment "jg key for spack" Jg xxx@cscs.ch
gpg: removing stale lockfile (created by 76570)
gpg: keybox '/store/csstaff/piccinal/SPACK/spack.git.clariden/opt/spack/gpg/pubring.kbx' created
gpg: /store/csstaff/piccinal/SPACK/spack.git.clariden/opt/spack/gpg/trustdb.gpg: trustdb created
gpg: key C46F93A2AA817A7C marked as ultimately trusted
gpg: directory '/store/csstaff/piccinal/SPACK/spack.git.clariden/opt/spack/gpg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/store/csstaff/piccinal/SPACK/spack.git.clariden/opt/spack/gpg/openpgp-revocs.d/3F1172D53E77775FBED91BCEC46F93A2AA817A7C.rev'
@jgphpc
jgphpc / a.log.gz
Last active February 9, 2023 16:01
ddt + squashfs + numactl