Skip to content

[BUG]: cuda::get_device_address relies on current device #6020

@davebayer

Description

@davebayer

Is this a duplicate?

Type of Bug

Something else

Component

libcu++

Describe the bug

cuda::get_device_address uses cudaGetSymbolAddress to retrieve the device address of an object. The problem is that it works with the current device, which is something we don't want in cccl-rt

How to Reproduce

See https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__MEMORY.html#group__CUDART__MEMORY_1g4f513be54d3794667c2017146b3d6a2b

Expected behavior

The function should take a device_ref parameter.

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working right.

Type

No type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions