rapidsai/cuml

Create preprocessor macros to standardize annotations

Open

#6,532 opened on Apr 10, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (644 forks)auto 404
CUDA/C++good first issue

Repository metrics

Stars
 (5,223 stars)
PR merge metrics
 (PR metrics pending)

Description

This came up in https://github.com/rapidsai/cuml/pull/6525 which attempted to remove ODR violations, and we noticed that check-symbols in CI fails even after removing the ODR violations. This is due to the fact that these kernels are called across TU boundaries and the issue is separate from satisfying ODR.

The fix for check-symbols was to mark the kernels as static. Per @vyasr https://github.com/rapidsai/cuml/pull/6525#issue-2984054211, we should define preprocessor macros that standardize how we annotate our kernel and device functions in cuML.

Contributor guide