├── .gitignore ├── 01-jit ├── README.md ├── compiler.py └── test_exp.py ├── 02-exp-1d-block ├── README.md ├── compiler.py ├── exp.cu └── test_exp.py ├── 03-exp-2d-block ├── README.md ├── compiler.py ├── exp.cu └── test_exp.py ├── 05-fused-exp-div ├── README.md ├── compiler.py ├── exp.cu └── test_exp.py ├── 06-reduce-seq ├── README.md ├── compiler.py ├── kernel.cu └── test_reduce.py ├── 07-reduce-par ├── README.md ├── compiler.py ├── kernel.cu └── test_reduce.py ├── 08-reduce-par-in-loop ├── README.md ├── compiler.py ├── kernel.cu └── test_reduce.py ├── 08-reduce-warp ├── README.md ├── compiler.py ├── kernel.cu └── test_reduce.py ├── 09-reuse-shared-mem ├── README.md ├── compiler.py ├── kernel.cu └── test_reduce.py ├── 10-dynamic-codegen ├── README.md ├── compiler.py ├── kernel.cu └── test_reduce.py └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.*~ 3 | -------------------------------------------------------------------------------- /01-jit/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/01-jit/README.md -------------------------------------------------------------------------------- /01-jit/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/01-jit/compiler.py -------------------------------------------------------------------------------- /01-jit/test_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/01-jit/test_exp.py -------------------------------------------------------------------------------- /02-exp-1d-block/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/02-exp-1d-block/README.md -------------------------------------------------------------------------------- /02-exp-1d-block/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/02-exp-1d-block/compiler.py -------------------------------------------------------------------------------- /02-exp-1d-block/exp.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/02-exp-1d-block/exp.cu -------------------------------------------------------------------------------- /02-exp-1d-block/test_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/02-exp-1d-block/test_exp.py -------------------------------------------------------------------------------- /03-exp-2d-block/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/03-exp-2d-block/README.md -------------------------------------------------------------------------------- /03-exp-2d-block/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/03-exp-2d-block/compiler.py -------------------------------------------------------------------------------- /03-exp-2d-block/exp.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/03-exp-2d-block/exp.cu -------------------------------------------------------------------------------- /03-exp-2d-block/test_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/03-exp-2d-block/test_exp.py -------------------------------------------------------------------------------- /05-fused-exp-div/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/05-fused-exp-div/README.md -------------------------------------------------------------------------------- /05-fused-exp-div/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/05-fused-exp-div/compiler.py -------------------------------------------------------------------------------- /05-fused-exp-div/exp.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/05-fused-exp-div/exp.cu -------------------------------------------------------------------------------- /05-fused-exp-div/test_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/05-fused-exp-div/test_exp.py -------------------------------------------------------------------------------- /06-reduce-seq/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/06-reduce-seq/README.md -------------------------------------------------------------------------------- /06-reduce-seq/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/06-reduce-seq/compiler.py -------------------------------------------------------------------------------- /06-reduce-seq/kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/06-reduce-seq/kernel.cu -------------------------------------------------------------------------------- /06-reduce-seq/test_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/06-reduce-seq/test_reduce.py -------------------------------------------------------------------------------- /07-reduce-par/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/07-reduce-par/README.md -------------------------------------------------------------------------------- /07-reduce-par/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/07-reduce-par/compiler.py -------------------------------------------------------------------------------- /07-reduce-par/kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/07-reduce-par/kernel.cu -------------------------------------------------------------------------------- /07-reduce-par/test_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/07-reduce-par/test_reduce.py -------------------------------------------------------------------------------- /08-reduce-par-in-loop/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-par-in-loop/README.md -------------------------------------------------------------------------------- /08-reduce-par-in-loop/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-par-in-loop/compiler.py -------------------------------------------------------------------------------- /08-reduce-par-in-loop/kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-par-in-loop/kernel.cu -------------------------------------------------------------------------------- /08-reduce-par-in-loop/test_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-par-in-loop/test_reduce.py -------------------------------------------------------------------------------- /08-reduce-warp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-warp/README.md -------------------------------------------------------------------------------- /08-reduce-warp/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-warp/compiler.py -------------------------------------------------------------------------------- /08-reduce-warp/kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-warp/kernel.cu -------------------------------------------------------------------------------- /08-reduce-warp/test_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/08-reduce-warp/test_reduce.py -------------------------------------------------------------------------------- /09-reuse-shared-mem/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/09-reuse-shared-mem/README.md -------------------------------------------------------------------------------- /09-reuse-shared-mem/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/09-reuse-shared-mem/compiler.py -------------------------------------------------------------------------------- /09-reuse-shared-mem/kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/09-reuse-shared-mem/kernel.cu -------------------------------------------------------------------------------- /09-reuse-shared-mem/test_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/09-reuse-shared-mem/test_reduce.py -------------------------------------------------------------------------------- /10-dynamic-codegen/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/10-dynamic-codegen/README.md -------------------------------------------------------------------------------- /10-dynamic-codegen/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/10-dynamic-codegen/compiler.py -------------------------------------------------------------------------------- /10-dynamic-codegen/kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/10-dynamic-codegen/kernel.cu -------------------------------------------------------------------------------- /10-dynamic-codegen/test_reduce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/10-dynamic-codegen/test_reduce.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tongzhou80/nanoPyC/HEAD/README.md --------------------------------------------------------------------------------