Skip to content

Instantly share code, notes, and snippets.

Keichi Takahashi keichi

Block or report user

Report or block keichi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@keichi
keichi / CMakeLists.txt
Last active Nov 17, 2019
ADIOS2 Multi-block write test
View CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 11)
project(test C CXX)
find_package(MPI REQUIRED)
find_package(ADIOS2 REQUIRED)
# We are not using the C++ API of MPI, this will stop the compiler look for it
View requirements.txt
slackclient==1.3.0
ratelimit==2.2.1
@keichi
keichi / convert.py
Created Jan 20, 2019
Converts Day One JSON file to TextBundle
View convert.py
import glob
import os
import json
import shutil
import sys
import re
def unescape(s):
s = s.replace(r"\n", "\n")
View variable_shape.cpp
#include <adios2.h>
void write(adios2::ADIOS &adios)
{
adios2::IO outIO = adios.DeclareIO("Output");
adios2::Engine writer = outIO.Open("test.bp", adios2::Mode::Write);
auto var = outIO.DefineVariable<double>("v", {1, 3}, {0, 0}, {1, 3});
std::vector<double> buf(10 * 3, 0.0);
View gist:73e4974403cd3f2dc5f4f8f3e0c4e1b9
Step 1:
rank 3 reads 2D slice 2000 x 2000 from offset (6000,0)
rank 1 reads 2D slice 2000 x 2000 from offset (2000,0)
rank 5 reads 2D slice 2000 x 2000 from offset (2000,2000)
rank 14 reads 2D slice 2000 x 2000 from offset (4000,6000)
rank 6 reads 2D slice 2000 x 2000 from offset (4000,2000)
rank 13 reads 2D slice 2000 x 2000 from offset (2000,6000)
rank 10 reads 2D slice 2000 x 2000 from offset (4000,4000)
rank 12 reads 2D slice 2000 x 2000 from offset (0,6000)
rank 11 reads 2D slice 2000 x 2000 from offset (6000,4000)
View gist:9e5b9891e5124f9771c063acdb5976b5
This file has been truncated, but you can view the full file.
Reader 0 (0xff75f0): Reader 0 (0xff75f0): Sst set to use enet as a Control Transport
Reader 0 (0xff75f0): Sst set to use enet as a Control Transport
Sst set to use enet as a Control Transport
Reader 0 (0xff75f0): Reader 0 (0x1018e30): Writer 0 (0xffcce0): Writer 0 (0xffcc30): Writer 0 (0xffcd40): Writer 0 (0x101e940): Sst set to use enet as a Control Transport
Writer 0 (0xffcc30): Writer 0 (0xffcd40): Sst set to use enet as a Control Transport
Writer 0 (0xffcd40): Sst set to use enet as a Control Transport
Writer 0 (0xffcd40): Writer 0 (0xffcce0): Writer 0 (0xffcd40): Sst set to use enet as a Control Transport
Writer 0 (0xffcd40): Sst set to use enet as a Control Transport
Writer 0 (0xffcce0): Writer 0 (0xffcd40): Loading DataPlane "evpath"
@keichi
keichi / trace_spank.c
Created Mar 4, 2018
Slurm plugin to trace SPANK function calls
View trace_spank.c
#include <slurm/spank.h>
SPANK_PLUGIN(trace, 1);
static void trace_spank_call(spank_t spank, const char *func_name)
{
char *ctx;
switch (spank_context()) {
case S_CTX_ERROR:
@keichi
keichi / countdown_cal.py
Created Nov 22, 2017
卒論カウントダウンカレンダー
View countdown_cal.py
import datetime
from reportlab.pdfgen import canvas
from reportlab.lib.units import mm
from reportlab.pdfbase.pdfmetrics import registerFont
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
XDAY = datetime.datetime(2018, 2, 19)
@keichi
keichi / block.zone
Created Aug 25, 2017
Block ShadowPad
View block.zone
# /var/named/chroot/var/named/block.zone
@ IN SOA localhost. nobody.localhost. (1 60 60 60 60)
IN NS localhost.
View gist:c12b00e9f56ad44d806e5fd71b158da9
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFX5+/mdP/T8sFQi051CqqgpIyezLPOwyoAUFAkmiqxOMVDEsJu/bDdNCQzSi4jmu4Fj9etfg9KvNR/ii3hMXpjnMxeLctO8+xbwpAfx+JUQq6+9MufruwVuilU2Lp22H2vKgN+JWam1PAz47vgJQaa+EKVJE/Upt++ob/lejSJ0HJMov8Q9maEMGduWXUmLA6kboli6YbiPulaI5GV4zyCkMGuCooB0XKZGeBLawaz1V381EX01dZO0NR7Ve3cX+paXADQkzNF0vNAhEjF8xIrmGkdrwLLHMSJoVT9NCFpKQBxHoGZcHP4Q4FiwzkMXHh1ELgsJqGvwK1Z64zUyFp keichi@mbp13
You can’t perform that action at this time.