question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic Parallelism

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
palmersscommented, Aug 30, 2019

@leofang This seems to be working correctly 😃 thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found