Skip to content

Instantly share code, notes, and snippets.

View MTCam's full-sized avatar

Mike Campbell MTCam

  • CEESD @ University of Illinois
  • Champaign Illinois
View GitHub Profile
@MTCam
MTCam / gist:e71ed21a686be85415d806155bd84ded
Created October 11, 2021 12:32
strace/truss for hanging lazy run of thermochem
stat64("/Users/mtcampbe/Library/Caches/pytools/pdict-v4-loopy-schedule-cache-v4-2021.2-islpy2021.1-cgen2020.1-f9e08d198a66a6b033802052cf3eabf3e6673756-v1-py3.8.12.final.0/fcc/a9d/7b059b19203bd944e002006ce7d61f3e5b843feab5a153ffa5d2a7eaf5\0", 0x7FFEEBB81BD8, 0x0) = 0 0
stat64("/Users/mtcampbe/Library/Caches/pytools/pdict-v4-loopy-schedule-cache-v4-2021.2-islpy2021.1-cgen2020.1-f9e08d198a66a6b033802052cf3eabf3e6673756-v1-py3.8.12.final.0/fcca9d7b059b19203bd944e002006ce7d61f3e5b843feab5a153ffa5d2a7eaf5.lock\0", 0x7FFEEBB81988, 0x0) = -1 2
open("/Users/mtcampbe/Library/Caches/pytools/pdict-v4-loopy-schedule-cache-v4-2021.2-islpy2021.1-cgen2020.1-f9e08d198a66a6b033802052cf3eabf3e6673756-v1-py3.8.12.final.0/fcc/a9d/7b059b19203bd944e002006ce7d61f3e5b843feab5a153ffa5d2a7eaf5/key\0", 0x1000000, 0x1B6) = 33 0
fstat64(0x21, 0x7FFEEBB81990, 0x0) = 0 0
ioctl(0x21, 0x4004667A, 0x7FFEEBB81A24) = -1 25
ioctl(0x21, 0x40487413, 0x7FFEEBB81A28) = -1 25
lseek(0x21, 0x0, 0x1) = 0 0
dtrace: error on enabled probe ID
@MTCam
MTCam / tmphttpwc27.cl
Created October 19, 2021 16:13
Unexplained lazy compile error
#define lid(N) ((int) get_local_id(N))
#define gid(N) ((int) get_group_id(N))
#if __OPENCL_C_VERSION__ < 120
#pragma OPENCL EXTENSION cl_khr_fp64: enable
#endif
#define LOOPY_CALL_WITH_INTEGER_TYPES(MACRO_NAME) \
MACRO_NAME(int8, char) \
MACRO_NAME(int16, short) \
MACRO_NAME(int32, int) \
MACRO_NAME(int64, long)
//
// Generated by LLVM NVPTX Back-End
//
.version 6.0
.target sm_70
.address_size 64
// .globl get_sc_scale
#!/bin/bash
set -e
set -o pipefail
echo "Running flake8..."
if [[ $(command -v "flake8") ]]; then
flake8 --docstring-convention numpy --ignore=D100,D101,D102,D103,D200,D202,D205,D400,D401,E127,E128,E123,E226,E241,W503 --show-source --statistics mirgecom/ test/ examples/ setup.py doc/conf.py
res=$?
if [[ $res -ne 0 ]]; then
echo "Error: flake8 check failed. Fix the errors (or run git with --no-verify to bypass the check)."