hughperkins / tf-coriander

OpenCL 1.2 implementation for Tensorflow
Apache License 2.0
791 stars 90 forks source link

mnist/convolutional.py failed #50

Open JammyZhou opened 7 years ago

JammyZhou commented 7 years ago

(env3)~/tf-coriander/tensorflow/models/image/mnist$ python convolutional.py Extracting data/train-images-idx3-ubyte.gz Extracting data/train-labels-idx1-ubyte.gz Extracting data/t10k-images-idx3-ubyte.gz Extracting data/t10k-labels-idx1-ubyte.gz OpenCL platform: Intel Gen OCL Driver OpenCL device: Intel(R) HD Graphics Haswell CRW GT3 Desktop I tensorflow/core/common_runtime/gpu/gpu_device.cc:989] Found device 0 with properties: name: Intel(R) HD Graphics Haswell CRW GT3 Desktop major: -1 minor: -1 memoryClockRate (GHz) 1000 pciBusID 0000.0000 Total memory: 2.00GiB Free memory: 1.50GiB I tensorflow/core/common_runtime/gpu/gpu_device.cc:877] cannot enable peer access from device ordinal 0 to device ordinal 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:1011] DMA: 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:1021] 0: N I tensorflow/core/common_runtime/gpu/gpu_device.cc:1083] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Intel(R) HD Graphics Haswell CRW GT3 Desktop, pci bus id: 0000.0000) cl_driver DeviceAllocate 1400897536 internal build log: stringInput.cl:440:12: error: assigning 'struct class_tensorflowrandomPhiloxRandom ' to '__global struct class_tensorflowrandomPhiloxRandom ' changes address space of pointer

kernel build error: Something went wrong with clCreateKernel, OpenCL error code -45 internal build log: stringInput.cl:440:12: error: assigning 'struct class_tensorflowrandomPhiloxRandom ' to '__global struct class_tensorflowrandomPhiloxRandom ' changes address space of pointer

storing failed kernel into: easycl-failedkernel.cl compileOpenCLKernel failed to compile opencl sourcecode unique kernel name _ZN10tensorflow7functor28FillPhiloxRandomKernelLaunchINS_6random27TruncatedNormalDistributionINS2_19SingleSampleAdapterINS2_12PhiloxRandomEEEfEEEEvS5_PNT_17ResultElementTypeExS81_2_3 short kernel name _ZN10tensorflow7func writing ll to /tmp/failed-kernel.ll writing cl to /tmp/failed-kernel.cl caught runtime error Something went wrong with clCreateKernel, OpenCL error code -45 internal build log: stringInput.cl:440:12: error: assigning 'struct class_tensorflowrandomPhiloxRandom *' to 'global struct class_tensorflowrandomPhiloxRandom *' changes address space of pointer storing failed kernel into: easycl-failedkernel.cl

terminate called after throwing an instance of 'std::runtime_error' what(): Something went wrong with clCreateKernel, OpenCL error code -45 internal build log: stringInput.cl:440:12: error: assigning 'struct class_tensorflowrandomPhiloxRandom ' to '__global struct class_tensorflowrandomPhiloxRandom ' changes address space of pointer storing failed kernel into: easycl-failedkernel.cl

Aborted (core dumped)

hughperkins commented 7 years ago

truncated normal is broken currently, see https://github.com/hughperkins/tf-coriander/issues/44 You can try replacing tf.truncated_normal with tf.random_normal.