This file contains hidden or 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
""" | |
PPROF Experiment. | |
""" | |
from benchbuild.experiment import Experiment | |
from benchbuild.project import Project | |
from benchbuild.utils.actions import (Build, Clean, Configure, Download, | |
MakeBuildDir, Prepare, Run) | |
from benchbuild.utils.run import track_execution | |
from functools import partial | |
from plumbum import local |
This file contains hidden or 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 "isl/map.h" | |
#include "isl/set.h" | |
#include "isl/space.h" | |
#include "isl/ctx.h" | |
int main(int argc, char *argv[]) { | |
isl_ctx *ctx = isl_ctx_alloc(); | |
isl_set *domainInner = isl_set_read_from_str(ctx, "[x,y] -> {S1[i,j] : 0 <= i,j and i < x and j < y }"); | |
isl_map *accessInner = isl_map_read_from_str(ctx, "{ S1[i,j] -> A[i+1, j-1, 42] }"); | |
isl_map *access = isl_map_read_from_str(ctx, "{S[i,j] -> F[j,i] }"); |
This file contains hidden or 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
# create a zkbd compatible hash; | |
# to add other keys to this hash, see: man 5 terminfo | |
typeset -A key | |
key[Home]=${terminfo[khome]} | |
key[End]=${terminfo[kend]} | |
key[Insert]=${terminfo[kich1]} | |
key[Delete]=${terminfo[kdch1]} | |
key[Up]=${terminfo[kcuu1]} | |
key[Down]=${terminfo[kcud1]} |
This file contains hidden or 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 java.util.Comparator; | |
import java.util.LinkedList; | |
import java.util.List; | |
import bwapi.*; | |
public class SommerinoCamperino extends DefaultBWListener { | |
static class Line { | |
private double slope; | |
private double intercept; |