themoosemind

theanotest.py error stream

Jul 23rd, 2014
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.16 KB | None | 0 0
  1. 1 #define _CUDA_NDARRAY_C
  2. 2
  3. 3 #include <Python.h>
  4. 4 #include <structmember.h>
  5. 5
  6. 6 #include <numpy/arrayobject.h>
  7. 7 #include <iostream>
  8. 8
  9. 9 #include "cuda_ndarray.cuh"
  10. [...]
  11. 4490 {
  12. 4491     fprintf(fd, "CudaNdarray <%p, %p> nd=%i dev_structure_fresh=%d data_allocated=%d\n",
  13. 4492             self, self->devdata, self->nd, self->dev_structure_fresh, self->data_allocated);
  14. 4493     fprintf(fd, "\tHOST_DIMS:      ");
  15. 4494     for (int i = 0; i < self->nd; ++i)
  16. 4495     {
  17. 4496         fprintf(fd, "%i\t", CudaNdarray_HOST_DIMS(self)[i]);
  18. 4497     }
  19. 4498     fprintf(fd, "\n\tHOST_STRIDES: ");
  20. 4499     for (int i = 0; i < self->nd; ++i)
  21. 4500     {
  22. 4501         fprintf(fd, "%i\t", CudaNdarray_HOST_STRIDES(self)[i]);
  23. 4502     }
  24. 4503
  25. 4504     if (self->dev_structure)
  26. 4505     {
  27. 4506         int data=0;
  28. 4507         fprintf(fd, "\n\tDEV_DIMS:      ");
  29. 4508         for (int i = 0; i < self->nd; ++i)
  30. 4509         {
  31. 4510             cublasGetVector(1, sizeof(int),
  32. 4511                             self->dev_structure+i, 1,
  33. 4512                             &data, 1);
  34. 4513             fprintf(fd, "%i\t", data);
  35. 4514         }
  36. 4515         fprintf(fd, "\n\tDEV_STRIDES: ");
  37. 4516         for (int i = 0; i < self->nd; ++i)
  38. 4517         {
  39. 4518             cublasGetVector(1, sizeof(int),
  40. 4519                             self->dev_structure + self->nd+i, 1,
  41. 4520                             &data, 1);
  42. 4521             fprintf(fd, "%i \t", data);
  43. 4522         }
  44. 4523         fprintf(fd, "\n");
  45. 4524     }
  46. 4525     else
  47. 4526     {
  48. 4527         fprintf(fd, "\n\tdev_structure not allocated\n");
  49. 4528     }
  50. 4529 }
  51. 4530
  52. 4531 /*
  53. 4532   Local Variables:
  54. 4533   mode:c++
  55. 4534   c-basic-offset:4
  56. 4535   c-file-style:"stroustrup"
  57. 4536   indent-tabs-mode:nil
  58. 4537   fill-column:79
  59. 4538   End:
  60. 4539 */
  61. 4540 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=79 :
  62. 4541
  63. ===============================
  64. cc1plus: fatal error: cuda_runtime.h: No such file or directory
  65. compilation terminated.
  66. ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc return status', 1, 'for cmd', 'nvcc -shared -g -O3 -m64 -Xcompiler -DCUDA_NDARRAY_CUH=bcb411d72e41f81f3deabfc6926d9728,-D NPY_ARRAY_ENSURECOPY=NPY_ENSURECOPY,-D NPY_ARRAY_ALIGNED=NPY_ALIGNED,-D NPY_ARRAY_WRITEABLE=NPY_WRITEABLE,-D NPY_ARRAY_UPDATE_ALL=NPY_UPDATE_ALL,-D NPY_ARRAY_C_CONTIGUOUS=NPY_C_CONTIGUOUS,-D NPY_ARRAY_F_CONTIGUOUS=NPY_F_CONTIGUOUS,-fPIC -Xlinker -rpath,/home/mthoma/.theano/compiledir_Linux-3.1.10-1.16-desktop-x86_64-with-SuSE-12.1-x86_64-x86_64-2.7.2/cuda_ndarray -Xlinker -rpath,/usr/local/cuda-5.0/lib -Xlinker -rpath,/usr/local/cuda-5.0/lib64 -I/usr/local/lib/python2.7/site-packages/Theano-0.6.0rc1-py2.7.egg/theano/sandbox/cuda -I/usr/local/lib/python2.7/site-packages/numpy-1.6.2-py2.7-linux-x86_64.egg/numpy/core/include -I/usr/include/python2.7 -o /home/mthoma/.theano/compiledir_Linux-3.1.10-1.16-desktop-x86_64-with-SuSE-12.1-x86_64-x86_64-2.7.2/cuda_ndarray/cuda_ndarray.so mod.cu -L/usr/local/cuda-5.0/lib -L/usr/local/cuda-5.0/lib64 -L/usr/lib64 -lpython2.7 -lcublas -lcudart')
  67. WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available
Add Comment
Please, Sign In to add comment