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
2
votes
1 answer

PYCUDA setting NVCC arguments

if i have any small pycuda code such as the one below, how can i access options of the nvcc compiler? for example if i want to set -maxrregcount 20 (or any other argument), how would i accomplish that> import pycuda.autoinit import pycuda.driver as…
Hannan
  • 73
  • 7
2
votes
0 answers

Does pyCUDA works on cloud?

I want to use pyCUDA on Microsoft azure. I tried installing it on Google Colab but it is not getting installed. I looked on to the pyCUDA documentation but couldn't find any discussion on it. Do anyone has any information regarding same? error:…
Bhaskar Dhariyal
  • 1,343
  • 2
  • 13
  • 31
2
votes
2 answers

How use PyCuda in multiprocessing?

the problem is not to use CUDA in processes, but that if the parent already has an initialized CUDA, then in processes can not initialize it. If you just make the initialization in the parent and throw it into the processes, but it does not work.…
Loony
  • 31
  • 1
  • 5
2
votes
1 answer

PyCUDA - ElementWise fails for equality checking

I'm trying to build an equality checker for two arrays that can I can run on my GPU using PyCUDA. Following the example given on the PyCUDA GPU Arrays documentation page, I attempted to write my own implementation. But whilst the below code works…
SLesslyTall
  • 261
  • 1
  • 3
  • 8
2
votes
0 answers

Installing Pycuda and using Pycharm

I am trying to install pycuda to do some image processing in python. I followed the following link to install it : https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_PyCUDA_On_Anaconda_For_Windows?lang=en I feel I have installed…
nithu
  • 29
  • 3
2
votes
2 answers

pyCuda, issues sending multiple single variable arguments

I have a pycuda program here that reads in an image from the command line and saves a version back with the colors inverted: import pycuda.autoinit import pycuda.driver as device from pycuda.compiler import SourceModule as cpp import numpy as…
Maurdekye
  • 3,597
  • 5
  • 26
  • 43
2
votes
0 answers

CUDA cuCtxSynchronize Error using pyCuda 2016.1.2

I have a pretty simple pycuda script here that's supposed to load in a grayscale image of a truck (2048x1365), invert the colors, and save it back; import pycuda.autoinit import pycuda.driver as device from pycuda.compiler import SourceModule as…
Maurdekye
  • 3,597
  • 5
  • 26
  • 43
2
votes
0 answers

install pycuda error :gcc: error: /EHsc: No such file or directory

I have met an error when i was installing the pycuda,i tried many times but it didnt work,i already have compiled boost,installed the cuda8.0.here is the error traceback and siteconf.py. error trace back: running install running…
2
votes
0 answers

Find what the PyCUDA compilation error was

I'm trying to compile a PyCUDA kernel. The compilation fails with the error: pycuda.driver.CompileError: nvcc preprocessing of C:\Users\itay\AppData\Local\Temp\tmp78b6tln1.cu failed [command: nvcc --preprocess -arch sm_52 -m64…
zmbq
  • 38,013
  • 14
  • 101
  • 171
2
votes
3 answers

pycuda "nvcc fatal : Cannot find compiler 'cl.exe' in PATH"

OS: win10 VS: visual stadio2015 64bit CUDA: CUDA8.0 python: python2.7.12 64bit (pycuda) I followed this website, https://documen.tician.de/pycuda/tutorial.html#getting-started import pycuda.driver as cuda import pycuda.autoinit from…
glen
  • 197
  • 1
  • 4
  • 13
2
votes
0 answers

CUDA IPC Memcpy + MPI fails in Theano, works in pycuda

For learning purposes, I wrote a small C Python module that is supposed to perform an IPC cuda memcopy to transfer data between processes. For testing, I wrote equivalent programs: one using theano's CudaNdarray, and the other using pycuda. The…
Joshua Gevirtz
  • 401
  • 3
  • 14
2
votes
1 answer

Interpretation of "too many resources for launch"

Consider the following Python code: from numpy import float64 from pycuda import compiler, gpuarray import pycuda.autoinit # N > 960 is crucial! N = 961 code = """ __global__ void kern(double *v) { double a = v[0]*v[2]; double lmax =…
thomas
  • 561
  • 2
  • 17
2
votes
1 answer

Calling a C++ CUDA device function from a Python kernel

I'm working on a project that involves creating CUDA kernels in Python. Numba works quite well (what these guys have accomplished is quite incredible), and so does PyCUDA. My problem is that I want to call a C device function from my Python…
zmbq
  • 38,013
  • 14
  • 101
  • 171
2
votes
1 answer

PyOpenCL vs Python Multiprocessing?

I've researched this topic quite a bit and can't seem to come to a conclusion. So I know OpenCL can be used for parallel processing using both the GPU and CPU (in contrast to CUDA). Since I want to do parallel processing with GPU and CPU, would it…
RandN88
  • 101
  • 8
2
votes
0 answers

Is it possible to use pycuda and GL Interop to directly modify a GL texture (without using a PBO)?

I am using a combination of kivy to do some interactive scientific visualization that leverages NVIDIA's GPUs using pycuda. I am currently looking at using the GL Interop functionality so that after my CUDA code has modified an array, I can…
weemattisnot
  • 889
  • 5
  • 16