Questions tagged [pycuda]

PyCUDA is the Python module which provides a comprehensive pythonic interface to the NVIDIA CUDA GPU computing environment.

PyCUDA provides a python module to access the NVIDIA CUDA driver API from within Python code.

The module includes interoperability with numpy, and comprehensive metaprogramming facilities for dynamically generating and JIT compiling CUDA code using Python.

417 questions
20
votes
2 answers

What is the difference between PyCUDA and NumbaPro CUDA Python?

I'm new to CUDA and am trying to figure out whether PyCUDA (free) or NumbaPro CUDA Python (not free) would be better for me (assuming the library cost is not an issue). Both seem to require that you use their respective Python dialects. But, it…
PDiracDelta
  • 2,348
  • 5
  • 21
  • 43
19
votes
5 answers

pyCUDA vs C performance differences?

I'm new to CUDA programming and I was wondering how the performance of pyCUDA is compared to programs implemented in plain C. Will the performance be roughly the same? Are there any bottle necks that I should be aware of? EDIT: I obviously tried…
memyself
  • 11,907
  • 14
  • 61
  • 102
17
votes
2 answers

Python Multiprocessing with PyCUDA

I've got a problem that I want to split across multiple CUDA devices, but I suspect my current system architecture is holding me back; What I've set up is a GPU class, with functions that perform operations on the GPU (strange that). These…
Bolster
  • 7,460
  • 13
  • 61
  • 96
14
votes
2 answers

No output after using PyCUDA

I've installed PyCUDA using pip. I tried this in two computers. One with a fresh install of Python 3.7.1 and one with Python 3.6.5. Everything fails after using PuCUDA with no error message. The minimum example is this: import sys import…
Panos Kalatzantonakis
  • 12,525
  • 8
  • 64
  • 85
14
votes
4 answers

pyCUDA with Flask gives pycuda._driver.LogicError: cuModuleLoadDataEx

I want to run a pyCUDA code on a flask server. The file runs correctly directly using python3 but fails when the corresponding function is called using flask. Here is the relevant code: cudaFlask.py: import pycuda.autoinit import pycuda.driver as…
arpanmangal
  • 1,770
  • 1
  • 17
  • 34
10
votes
5 answers

src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory

when I install pycuda by this instruction: pip install pycuda but there is an error: src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory but I have installed the cuda toolkit.this is the result of nvcc -V [root@localhost…
kaikai_sk
  • 121
  • 1
  • 1
  • 10
9
votes
3 answers

pycuda -- 'CUDA_ROOT not set, and nvcc not in path.'

Although i had installed pycuda and using it ok,it started (without doing sth) not to work.So,i i tried to do the install again ,but when i am doing python configure.py --cuda-root=/usr/local/cuda/bin it gives me the error in the title. The nvcc…
George
  • 5,808
  • 15
  • 83
  • 160
9
votes
3 answers

trying to install pycuda, getting zip error?

windows 10, python 2.7 64 bit hello, following a guide to this step : pip install pipwin pipwin install pycuda gives me those options Package `pycuda` found in cache Choose version to download. [0] : 2014.1+cuda6514 [1] : 2015.1.3+cuda7518 no…
hmmmbob
  • 1,167
  • 5
  • 19
  • 33
8
votes
1 answer

PyCUDA: Querying Device Status (Memory specifically)

PyCUDA's documentation mentions Driver Interface calls in passing, but I'm a bit think and can't see how to get information such as 'SHARED_SIZE_BYTES' out of my code. Can anyone point me to any examples of querying the device in this way? Is it…
Bolster
  • 7,460
  • 13
  • 61
  • 96
8
votes
2 answers

PyCUDA context error when using Flask

I am using the PyCUDA to implement the smooth_local_affine as shown here. It works well when I simply run the program on linux. But when I tried to import it under Flask context: from smooth_local_affine import smooth_local_affine from flask import…
cloudwayx
  • 81
  • 1
  • 3
8
votes
1 answer

pycuda vs theano vs pylearn2

I am currently learning programming with GPU to improve the performance of machine learning algorithms. Initially I try to learn programming cuda with pure c, then I found pycuda which to me a wrapper of cuda library, and then I found theano and…
user1754197
  • 127
  • 1
  • 9
8
votes
1 answer

pip install pycuda on windows

I'm using VS2008, Win XP, latest CUDA toolkit. I run pip install pycuda on windows and get following log from C:\Documents and Settings\User\Application Data\pip\pip.log I get error LINK : fatal error LNK1181: cannot open input file…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
8
votes
1 answer

scipy.interpolate.griddata equivalent in CUDA

I'm trying to perform Fitted Value Iteration (FVI) in python (involving approximating a 5 dimensional function using piecewise linear interpolation). scipy.interpolate.griddata works perfectly for this. However, I need to call the interpolation…
user1726633
  • 356
  • 2
  • 10
7
votes
3 answers

get "LogicError: explicit_context_dependent failed: invalid device context - no currently active context? " when running tensorRT in ROS

I have an inference code in TensorRT(with python). I want to run this code in ROS but I get the below error when trying to allocate buffer: LogicError: explicit_context_dependent failed: invalid device context - no currently active context? The code…
Mahsa
  • 466
  • 2
  • 7
  • 26
7
votes
3 answers

PyTorch Cuda with anaconda not available

I'm using anaconda to regulate my environment, for a project i have to use my GPU for network training. I use pytorch for my project and i'm trying to get CUDA working. I installed cudatoolkit, numba, cudnn still, when i try this…
Enforcerke
  • 257
  • 1
  • 3
  • 10
1
2 3
27 28