Skip to content

Instantly share code, notes, and snippets.

@mbollmann
Created July 7, 2017 14:42
Show Gist options
  • Save mbollmann/fda3b219ef1416649b79ecc725174152 to your computer and use it in GitHub Desktop.
Save mbollmann/fda3b219ef1416649b79ecc725174152 to your computer and use it in GitHub Desktop.
Crude patch for Theano 0.9.0 to produce deterministic results with CUDA
--- theano/sandbox/cuda/opt.py 2017-05-31 23:26:09.972668647 +0200
+++ theano/sandbox/cuda/opt_patched.py 2017-06-01 00:49:43.818626738 +0200
@@ -38,10 +38,12 @@
GpuElemwise, GpuDimShuffle, GpuReshape, GpuCAReduce,
gpu_flatten,
GpuSubtensor, GpuAdvancedSubtensor1,
- GpuAdvancedIncSubtensor1, GpuAdvancedIncSubtensor1_dev20,
+ GpuAdvancedIncSubtensor1,
GpuIncSubtensor, gpu_alloc, GpuAlloc, gpu_shape, GpuSplit, GpuAllocEmpty)
from theano.sandbox.cuda.opt_util import pad_dims, unpad_dims
+GpuAdvancedIncSubtensor1_dev20 = GpuAdvancedIncSubtensor1
+
from theano.sandbox.cuda.type import CudaNdarrayType
from theano.sandbox.cuda.blas import (
gpu_dot22, gpu_dot22scalar, gpu_gemm_inplace, gpu_gemm_no_inplace, GpuConv,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment