Skip to content

Instantly share code, notes, and snippets.

View s-sajid-ali's full-sized avatar

Sajid Ali s-sajid-ali

View GitHub Profile

CSV Changes Required to Replicate Commit d23fe45 Behavior

Summary

Commit d23fe45 added facet matches to 4 storage services. However, the old system used numeric facet IDs while the new refactored system uses semantic facet IDs. Additionally, some old facets no longer exist in the new system.

Old Facet ID to Description Mapping

Based on the old facet-tree.json:

| Old ID | Facet Category | Description |

@s-sajid-ali
s-sajid-ali / slurm-ingest-from-dump.sh
Created May 19, 2025 14:36
slurm-ingest-from-dump
# basic version from claude-3.7
#!/bin/bash
# Define the dump file path
DUMP_FILE="/slurm-dump/f-k8s-dev.cfg"
# Function for error handling
handle_error() {
local exit_code=$1
local error_message=$2
@s-sajid-ali
s-sajid-ali / gist:bbf0328c7fe1ecb3090d43fb3381f28c
Created April 15, 2023 00:35
spack-spec-openpmd-hdf5-ompi-nocrash-wc-work1
{
"spec": {
"_meta": {
"version": 3
},
"nodes": [
{
"name": "openpmd-api",
"version": "0.15.1",
"arch": {
@s-sajid-ali
s-sajid-ali / openpmd-wc-fnal-spec.json
Created April 14, 2023 20:24
spack-spec-openpmd-hdf5-crash-wc-work1
{
"spec": {
"_meta": {
"version": 3
},
"nodes": [
{
"name": "openpmd-api",
"version": "0.15.1",
"arch": {
bash-4.2$ cat /wclustre/accelsim/spack-shared-v3/setup_env_synergia-devel3-cpu-ivybridge-001.sh
#Generated by spack env activate --sh synergia-devel3-cpu-ivybridge-001 &> setup_env_synergia-devel3-cpu-ivybridge-001.sh
export SPACK_ENV=/wclustre/accelsim/spack-shared-v3/spack/var/spack/environments/synergia-devel3-cpu-ivybridge-001;
alias despacktivate='spack env deactivate';
export ACLOCAL_PATH=/wclustre/accelsim/spack-shared-v3/spack/var/spack/environments/synergia-devel3-cpu-ivybridge-001/.spack-env/view/share/aclocal;
export CMAKE_PREFIX_PATH=/wclustre/accelsim/spack-shared-v3/spack/var/spack/environments/synergia-devel3-cpu-ivybridge-001/.spack-env/view;
export CPATH=/wclustre/accelsim/spack-shared-v3/spack/var/spack/environments/synergia-devel3-cpu-ivybridge-001/.spack-env/view/include/python3.9:/wclustre/accelsim/spack-shared-v3/spack/var/spack/environments/synergia-devel3-cpu-ivybridge-001/.spack-env/view/include/eigen3;
export MANPATH=/wclustre/accelsim/spack-shared-v3/spack/var/spack/environments/sy
Propagator: turn 10/inf., time = 0.521s, macroparticles = (1024) / ()
=================================================================
==5750==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fffefea4650 at pc 0x7fffe7b84009 bp 0x7fffffff64b0 sp 0x7fffffff64a8
READ of size 4 at 0x7fffefea4650 thread T0
#0 0x7fffe7b84008 in VecLockReadPush /wclustre/accelsim/sajid/packages/petsc/src/vec/vec/interface/rvector.c:3824
#1 0x7fffedc9b91e in PCApply /wclustre/accelsim/sajid/packages/petsc/src/ksp/pc/interface/precon.c:439
#2 0x7fffec938bbf in KSP_PCApply /wclustre/accelsim/sajid/packages/petsc/include/petsc/private/kspimpl.h:378
#3 0x7fffec93a6a5 in KSPSolve_PREONLY /wclustre/accelsim/sajid/packages/petsc/src/ksp/ksp/impls/preonly/preonly.c:21
#4 0x7fffec59829b in KSPSolve_Private /wclustre/accelsim/sajid/packages/petsc/src/ksp/ksp/interface/itfunc.c:897
#5 0x7fffec59fa88 in KSPSolve /wclustre/accelsim/sajid/packages/petsc/src/ksp/ksp/interface/itfunc.c:1069
Propagator: turn 10/inf., time = 0.507s, macroparticles = (1024) / ()
=================================================================
==24348==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fffefea4650 at pc 0x7fffe7b84009 bp 0x7fffffff5c30 sp 0x7fffffff5c28
READ of size 4 at 0x7fffefea4650 thread T0
#0 0x7fffe7b84008 in VecLockReadPush /wclustre/accelsim/sajid/packages/petsc/src/vec/vec/interface/rvector.c:3824
#1 0x7fffedc9b91e in PCApply /wclustre/accelsim/sajid/packages/petsc/src/ksp/pc/interface/precon.c:439
#2 0x7fffec938bbf in KSP_PCApply /wclustre/accelsim/sajid/packages/petsc/include/petsc/private/kspimpl.h:378
#3 0x7fffec93a6a5 in KSPSolve_PREONLY /wclustre/accelsim/sajid/packages/petsc/src/ksp/ksp/impls/preonly/preonly.c:21
#4 0x7fffec59829b in KSPSolve_Private /wclustre/accelsim/sajid/packages/petsc/src/ksp/ksp/interface/itfunc.c:897
#5 0x7fffec59fa88 in KSPSolve /wclustre/accelsim/sajid/packages/petsc/src/ksp/ksp/interface/itfunc.c:1069
@s-sajid-ali
s-sajid-ali / icaruswf-theta-2-MPI-ranks-per-node
Created December 22, 2022 17:07
submit script for icarus workflow on alcf theta that results in a crash
#!/bin/bash
#COBALT -A HEP_on_HPC
#COBALT -n 4
#COBALT -t 01:00:00
#COBALT --mode script
export NUM_DAEMON_NODES=1
export NUM_DAEMON_TOTAL_RANKS=$(($NUM_DAEMON_NODES*16))
export NUM_DAEMON_HYPERTHREADS=1