We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support to Cuda thread indexing.
Cuda
example:
from pyccel.decorators import kernel, types from pyccel import cuda @kernel @types('int[:]') def func(a): i = cuda.threadIdx(0) + cuda.blockIdx(0) * cuda.blockDim(0) print("Hello World! ", a[i])
The aim is to add the support of ( threadIdx, blockIdx, blockDim )
threadIdx
blockIdx
blockDim
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#thread-hierarchy https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#built-in-variables
The text was updated successfully, but these errors were encountered:
smazouz42
No branches or pull requests
Adding support to
Cuda
thread indexing.example:
The aim is to add the support of (
threadIdx
,blockIdx
,blockDim
)https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#thread-hierarchy
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#built-in-variables
The text was updated successfully, but these errors were encountered: