Skip to content

Instantly share code, notes, and snippets.

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;
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
import "regent"
local C = regentlib.c
local SCHEMA = terralib.includecstring [[
#ifndef __CONFIG_SCHEMA_H__
#define __CONFIG_SCHEMA_H__
#include <stdbool.h>
#include <stdint.h>
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;
-- 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,
@elliottslaughter
elliottslaughter / sc20_execution_env.txt
Created April 20, 2020 21:55
SC20 Artifact Description Execution Environment
######################################################################
## Cori
######################################################################
+ lsb_release -a
LSB Version: n/a
Distributor ID: SUSE
Description: SUSE Linux Enterprise Server 12 SP3
Release: 12.3
Codename: n/a
@elliottslaughter
elliottslaughter / test_cores.py
Last active June 29, 2020 05:59
Reproducer for TensorFlow CPU usage
from __future__ import print_function
import argparse
import time
import numpy as np
import tensorflow as tf
from tensorflow.python.client import timeline
parser = argparse.ArgumentParser()
@elliottslaughter
elliottslaughter / seema_gamma_table_min.h
Created August 9, 2023 21:25
Regent issue 1385 reproducer
#pragma once
const double gamma_table[18][700] = {
1.0000000000000001E+00,
9.9999999996473882E-01,
9.9999999856422813E-01,
9.9999998888660239E-01,
9.9999995365084444E-01,
9.9999986117081982E-01,
9.9999966203208548E-01,
@elliottslaughter
elliottslaughter / gamma_table_min.h
Last active August 10, 2023 06:16
Terra miscompilation reproducer
#pragma once
const double gamma_table[18][700] = {
1.0000000000000001E+00,
9.9999999996473882E-01,
9.9999999856422813E-01,
9.9999998888660239E-01,
9.9999995365084444E-01,
9.9999986117081982E-01,
9.9999966203208548E-01,