Skip to content

Instantly share code, notes, and snippets.

Elliott Slaughter elliottslaughter

Block or report user

Report or block elliottslaughter

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
View privilege_reduce5.rg
-- Copyright 2019 Stanford University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
View test_config.t
local C = terralib.includecstring [[
#include "stdio.h"
#include "stdlib.h"
#include "stdbool.h"
#include "stdint.h"
typedef int TempProfile;
#define TempProfile_File 0
typedef int InflowProfile;
View test_config.rg
import "regent"
local C = regentlib.c
local SCHEMA = terralib.includecstring [[
#ifndef __CONFIG_SCHEMA_H__
#define __CONFIG_SCHEMA_H__
#include <stdbool.h>
#include <stdint.h>
View test_perf_regression.t
local C = terralib.includecstring
[[
#ifndef __CONFIG_SCHEMA_H__
#define __CONFIG_SCHEMA_H__
#include <stdbool.h>
#include <stdint.h>
typedef int TurbForcingModel;
#define TurbForcingModel_OFF 0
View test_config.t
local C = terralib.includec("stdio.h")
local SCHEMA = terralib.includecstring
[[
#ifndef __CONFIG_SCHEMA_H__
#define __CONFIG_SCHEMA_H__
#include <stdbool.h>
#include <stdint.h>
typedef int TempProfile;
View clang-link-line.txt
View hbb-no-libc++.txt
$ docker run -v `pwd`:/io terra/build-box:no-libcxx bash -c "cd /io && /hbb/bin/setuser builder ./hbb-builder.sh"
Holy build box activated
Prefix: /hbb_shlib
CFLAGS/CXXFLAGS: -g -O2 -fvisibility=hidden -I/hbb_shlib/include
LDFLAGS: -L/hbb_shlib/lib -static-libstdc++
STATICLIB_CFLAGS: -g -O2 -fvisibility=hidden -I/hbb_shlib/include -fPIC
SHLIB_CFLAGS: -g -O2 -fvisibility=hidden -I/hbb_shlib/include
SHLIB_LDFLAGS: -L/hbb_shlib/lib -static-libstdc++
+ mkdir -p /io/build
View hbb-libstdc++.txt
$ docker run -v `pwd`:/io terra/build-box:latest bash -c "cd /io && /hbb/bin/setuser builder ./hbb-builder.sh"
Holy build box activated
Prefix: /hbb_shlib
CFLAGS/CXXFLAGS: -g -O2 -fvisibility=hidden -I/hbb_shlib/include
LDFLAGS: -L/hbb_shlib/lib -static-libstdc++
STATICLIB_CFLAGS: -g -O2 -fvisibility=hidden -I/hbb_shlib/include -fPIC
SHLIB_CFLAGS: -g -O2 -fvisibility=hidden -I/hbb_shlib/include
SHLIB_LDFLAGS: -L/hbb_shlib/lib -static-libstdc++
+ mkdir -p /io/build
View micro_bench.py
#!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import sys
import time
import dask
import numpy as np
View gist:878bd01be7aaf3fc8a1c3f59ed6ad3fe
$ rg --no-filename --only-matching 'lua[A-Za-z0-9_]+[(]' src/ | sort -u
luaK_exp2nextreg(
luaK_exp2val(
luaL_checkint(
luaL_checknumber(
luaL_checkstack(
luaL_checkstring(
luaL_error(
luaL_loadbuffer(
luaL_loadfile(
You can’t perform that action at this time.