Questions tagged [numba-pro]

NumbaPro - enhanced version of Numba, adding GPU support

NumbaPro is an enhanced version of Numba which adds premium features and functionality that allow developers to rapidly create optimized code that integrates well with NumPy.

With NumbaPro, Python developers can define NumPy ufuncs and generalized ufuncs (gufuncs) in Python, which are compiled to machine code dynamically and loaded on the fly. Additionally, NumbaPro offers developers the ability to target multicore and GPU architectures with Python code for both ufuncs and general-purpose code.

For targeting the GPU, NumbaPro can either do the work automatically, doing its best to optimize the code for the GPU architecture. Alternatively, CUDA-based API is provided for writing CUDA code specifically in Python for ultimate control of the hardware (with thread and block identities).

Here’s a list of highlighted features:

Portable data-parallel programming through ufuncs and gufuncs for single core CPU, multicore CPU and GPU Bindings to CUDA libraries: cuRAND, cuBLAS, cuFFT Python CUDA programming for maximum control of hardware resources

References:

79 questions
0
votes
1 answer

Aborting AWS operations/ installing Anaconda with numbapro

Two part question, would really appreciate help on either part. I'm attempting to install Anaconda followed by numbapro on AWS EB. My options.config in .ebextensions looks like this: commands: 00_download_conda: command: 'wget…
0
votes
1 answer

Running Python on GPU using numba

I am trying to run python code in my NVIDIA GPU and googling seemed to tell me that numbapro was the module that I am looking for. However, according to this, numbapro is no longer continued but has been moved to the numba library. I tried out numba…
Ananda
  • 2,925
  • 5
  • 22
  • 45
0
votes
1 answer

calculate Matrix Vector multiplication with python in cuda

I'm trying to use numbapro to write a simple matrix vector multiplication below: from numbapro import cuda from numba import * import numpy as np import math from timeit import default_timer as time m = 100000 n = 100 @cuda.jit('void(f4[:,:],…
0
votes
1 answer

Two values can't be printed correctly (python3.5+numba+CUDA8.0)

There is an array, I'll do some calculation with it in GPU. Before my calculation, I should get the subsets of this array. When I print the subsets, find two values are not right. The code is as follows: import os,sys,time import pandas as pd import…
glen
  • 197
  • 1
  • 4
  • 13
0
votes
1 answer

1 dimentional fftconvolve with numbapro cuda

I have been following an example (https://github.com/ContinuumIO/numbapro-examples/blob/master/convolution/fftconvolve.py) given to do fftconvolve with an image and a kernel, both are 2D arrays. In my use case I would like to do fftconvolve with two…
0
votes
1 answer

Does Numbapro support SIMD programming architecture

I am trying to solve an entropy problem on GPU using simplex optimisation. Because each iteration of simplex relies on the previous one I believe that there is no way that I can make my algorithm parallel. However having done some research on…
Ali S
  • 21
  • 1
  • 5
0
votes
1 answer

numba-pro unable to load CUDA device

I'm trying to se if GPU computation will dramatically speed up my code. I have installed numba-pro through the conda package manager. However, the module does not seem to able to detect the CUDA device: In [1]: import numbapro ;…
Jonathan Kadmon
  • 115
  • 1
  • 9
0
votes
1 answer

Numba : 'Module' object has no attribute 'global_variables'

This is a basic example of numba import numpy as np from numba import double from numba.decorators import jit, autojit X = np.random.random((1000, 3)) def pairwise_python(X): M = X.shape[0] N = X.shape[1] D = np.empty((M, M),…
KyungHoon Kim
  • 2,859
  • 2
  • 23
  • 26
0
votes
0 answers

How to change the path associated with numbapro module?

I am trying to run a Python script that imports numbapro and I keep getting a bad path to the site-package location. When I import numbapro from the interactive command line I don't have any issues, but when I try to run this demo script from…
TankofVines
  • 1,107
  • 2
  • 14
  • 23
0
votes
1 answer

Numbapro cuda python defining array in thread register in gpu

I know how to create a global device function inside Host using np.array or np.zeros or np.empty(shape, dtype) and then using cuda.to_device to copy. Also, one can declare shared array as cuda.shared.array(shape, dtype) But how to create an array of…
jalatif
  • 43
  • 6
0
votes
1 answer

Cuda out of resources error when running python numbapro

I am trying to run a cuda kernel in numbapro python, but I keep getting an out of resources error. I then tried to execute the kernel into a loop and send smaller arrays, but that still gave me the same error. Here is my error message: Traceback…
ziploc1010
  • 21
  • 2
0
votes
1 answer

Cannot coerce to or from object in nopython context: Error after python

Following up from here, Numba is finally working (after weeks) on my machine, without any weird indentation errors. I've implemented it as in the solution to the linked question. However, I now get this string of errors from Numba, the last line…
user961627
  • 12,379
  • 42
  • 136
  • 210
0
votes
1 answer

Numbapro jit calculation gives incorrect result

I have a piece of code that uses Numbapro to write a simple kernel to square the contents of two arrays of size 41724,add them together and store it into another array. All the arrays have the same size and are float32. The code is below: import…
KuroNeko
  • 319
  • 2
  • 8
  • 17
0
votes
1 answer

NotImplementedError at Decorator of NumbaPro (Python)

I am new to NumbaPro in Python. I have the following code which I want to parallelize in x,y grid in CUDA (Anaconda Accelerate), however everytime I run this it gives a NotImplementedError at the Decorator line, I am not sure what is wrong, can…
Kyle
  • 3
  • 1
-1
votes
3 answers

How to set numba signature with nested lists?

I'm trying to return an nested list, however running into some conversion error. Below is small piece of code for reproduction of error. from numba import njit, prange @njit("ListType(ListType(ListType(int32)))(int32, int32)", fastmath = True,…
Bhaskar Dhariyal
  • 1,343
  • 2
  • 13
  • 31