Skip to content

Instantly share code, notes, and snippets.

@inducer
inducer / README
Created September 3, 2012 22:49
Timing example
Please get your timing code from
https://github.com/hpc12/lec1-demo
@inducer
inducer / scan.cl
Created July 24, 2012 04:35
PyOpenCL scan code generator
#define K ${k_group_size}
KERNEL
REQD_WG_SIZE(WG_SIZE, 1, 1)
void ${name_prefix}_scan_intervals(
${argument_signature},
GLOBAL_MEM scan_type *partial_scan_buffer,
const index_type N,
const index_type interval_size
@inducer
inducer / export-bug.py
Created July 21, 2012 05:48
OpenCascade export bug
import OCC.gp as gp
import OCC.BRepPrimAPI as brep
import OCC.BRepAlgoAPI as brep_alg
import OCC.Utils.DataExchange.IGES as iges
import OCC.Utils.DataExchange.STEP as step
import OCC.Display.SimpleGui as gui
objs = []
for x in [0, 21]:
ax = gp.gp_Ax2(gp.gp_Pnt(x,0,0), gp.gp_Dir(0,1,0))