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
#include <random> | |
int main() | |
{ | |
} |
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
cmake_minimum_required(VERSION 3.16) | |
project(test) | |
set(CMAKE_CXX_STANDARD 17) | |
add_executable(test main.cpp) |
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
import json | |
import sys | |
BASE64_ALPHABET = ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
"0123456789+/") | |
BASE64_TABLE = dict(zip(BASE64_ALPHABET, range(64))) | |
def decode_vlq(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
#include <fcntl.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <iostream> | |
#include <vector> | |
struct header { | |
int n; | |
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# pip3 install kedm==0.4.0 | |
import numpy as np | |
import kedm | |
data = np.loadtxt("block_3sp.csv", delimiter=",", skiprows=1) | |
# Columns #1, #4 and #7 correspond to x_t, y_t and z_t | |
library = data[:99, [1, 4, 7]] | |
target = data[97:198, [1, 4, 7]] |
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
(base) [y90186@frontend-server152 build-vh]$ cmake -DCMAKE_CXX_COMPILER=/opt/nec/ve/mpi/3.0.0/bin/mpic++ -DCMAKE_C_COMPILER=/opt/nec/ve/mpi/3.0.0/bin/mpicc -DCMAKE_CXX_FLAGS_RELEASE="-vh" -DCMAKE_C_FLAGS_RELEASE="-vh" -DADIOS2_USE_SST=OFF -DADIOS2_USE_BP5=OFF -DADIOS2_USE_Fortran=OFF -DADIOS2_USE_BZip2=OFF -DBUILD_SHARED_LIBS=OFF -DADIOS2_USE_Python=ON -DPython3_ROOT_DIR=$HOME/miniconda3 -DBUILD_SHARED_LIBS=ON .. | |
-- The C compiler identification is GNU 7.1.0 | |
-- The CXX compiler identification is GNU 7.1.0 | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: /opt/nec/ve/mpi/3.0.0/bin/mpicc - skipped | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done |
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 python3 | |
import serial # pip install pyserial | |
import time | |
def main(): | |
with serial.Serial("/dev/ttyUSB0", 9600) as ser: | |
ser.write(b":TRAN:TERM 0\n") | |
while True: | |
ser.write(b":MEAS? V,A,W\n") |
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
#pragma once | |
#include <iterator> | |
namespace proto | |
{ | |
template <class ExecutionPolicy, class ForwardIterator, class T> | |
void fill(ExecutionPolicy &&exec, ForwardIterator first, ForwardIterator last, | |
const T &value) |
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
[keichi@muffin2 ~]$ singularity run --nv --env LD_LIBRARY_PATH=/usr/local/cuda/lib64 -B $(pwd):/data hpc-benchmarks_21.4-hpcg.sif mpirun -n 1 --bind-to socket hpcg.sh --cpu-affinity 0-7 --cpu-cores-per-rank 8 --gpu-affinity 0 --dat /data/hpcg_a100_40gb.dat | |
WARNING: group: unknown groupid 200000 | |
NOTE: MOFED driver for multi-node communication was not detected. | |
Multi-node communication performance may be reduced. | |
INFO: host=muffin2 rank=0 lrank=0 cores=8 gpu=0 cpu=0-7 mem= ucx= bin=/workspace/hpcg-linux-x86_64/xhpcg | |
HPCG-CUDA-Benchmark v1.0.0 | |
HPCG-Benchmark v3.1 | |
start of application (8 OMP threads)... |
NewerOlder