Dynamic Parallelism
See original GitHub issueI am interested in utilizing Dynamic Parallelism in my cupy projects.
extern "C"
{
__global__ void test_kernel_inner()
{
printf(" Hello inner world!\n");
}
__global__ void test_kernel()
{
printf("Hello outer world!\n");
test_kernel_inner<<<2, 1>>>();
}
}
Trying to launch the above cuda code with the following commands
TestKernel = cp.RawKernel(Test, 'test_kernel', ('-rdc=true',))
TestKernel((1,),(1,),())
I get the error
File "/home/palmerss/PycharmProjects/TestProject/Test.py", line 23, in <module>
TestKernel((1,),(1,),())
File "cupy/core/raw.pyx", line 51, in cupy.core.raw.RawKernel.__call__
File "cupy/util.pyx", line 55, in cupy.util.memoize.decorator.ret
File "cupy/core/raw.pyx", line 57, in cupy.core.raw._get_raw_kernel
File "cupy/core/carray.pxi", line 125, in cupy.core.core.compile_with_cache
File "cupy/core/carray.pxi", line 166, in cupy.core.core.compile_with_cache
File "/home/palmerss/anaconda3/envs/TestProject/lib/python3.7/site-packages/cupy/cuda/compiler.py", line 168, in compile_with_cache
cubin = ls.complete()
File "cupy/cuda/function.pyx", line 216, in cupy.cuda.function.LinkState.complete
File "cupy/cuda/function.pyx", line 217, in cupy.cuda.function.LinkState.complete
File "cupy/cuda/driver.pyx", line 161, in cupy.cuda.driver.linkComplete
File "cupy/cuda/driver.pyx", line 82, in cupy.cuda.driver.check_status
cupy.cuda.driver.CUDADriverError: CUDA_ERROR_UNKNOWN: unknown error
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
CUDA Dynamic Parallelism API and Principles
In CUDA Dynamic Parallelism, a parent grid launches kernels called child grids. A child grid inherits from the parent grid certain attributes ...
Read more >Introduction to Dynamic Parallelism - UCR CS
What is Dynamic Parallelism? The ability to launch new grids from the GPU. Dynamically. Simultaneously. Independently. CPU.
Read more >New – Step Functions Support for Dynamic Parallelism
This new feature is available today in all regions where Step Functions is offered. Dynamic parallelism was probably the most requested feature ...
Read more >CUDA Dynamic Parallelism - Fang's Notebook
With Dynamic Parallelism · GPU can generate work on itself without involvement of CPU. reduce the trips to CPU · Permits Dynamic Runtime...
Read more >DEEP DIVE INTO DYNAMIC PARALLELISM - GTC On Demand
OVERVIEW AND INTRODUCTION. Page 3. 3. WHAT IS DYNAMIC PARALLELISM? The ability to launch new kernels from the GPU. ▫ Dynamically - based...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ref: https://stackoverflow.com/questions/57152396/dynamic-parallelism-in-cupy
@leofang This seems to be working correctly 😃 thanks!