SA-SSD icon indicating copy to clipboard operation
SA-SSD copied to clipboard

CUDA kernel failed : invalid device function

Open binlidaily opened this issue 4 years ago • 3 comments

When I try to train the model, I get CUDA kernel failed:

File "mmdet/core/bbox3d/geometry.py", line 240:
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
    <source elided>
    # first convert polygon to directed lines
    num_points_of_polygon = polygon.shape[1]
    ^

  state.func_ir.loc))
CUDA kernel failed : invalid device function
Segmentation fault (core dumped)

I google the solution, which is said I should change my GPU setting, I use RTX 2080 Ti and CUDA 10.0, so I should set:

-gencode=arch=compute_75,code=sm_75

The problem is where should I do this setting?

Thank you very much!

binlidaily avatar Apr 09 '20 07:04 binlidaily

you can use gdb

nmll avatar May 05 '20 10:05 nmll

i also have the same problem and the same question. why does everyone not tell where to do the setting.

hughlee815 avatar Jul 31 '20 06:07 hughlee815

i also have the same problem and the same question. why does everyone not tell where to do the setting.

did you solve this?

mc171819 avatar Aug 16 '21 03:08 mc171819