Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide symbols for GPU kernels #310

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Conversation

cgmb
Copy link
Contributor

@cgmb cgmb commented Jan 18, 2023

The -fvisibility=hidden flag does not affect kernels and thus all __global__ GPU functions become externally-visible symbols by default. Marking them as static will hide them.

This is not strictly necessary, since the rocrand kernels are all appropriately confined to the rocrand details namespace. However, it is still useful to hide their symbols, as it is difficult to review ABI changes between different versions of rocrand when the output of dpkg-gensymbols is full of kernels that change from release to release.

The -fvisibility=hidden flag does not affect kernels and thus all
__global__ GPU functions become externally-visible symbols by default.
Marking them as static will hide them.

This is not strictly necessary, since the rocrand kernels are all
appropriately confined to the rocrand details namespace. However, it
is still useful to hide their symbols, as it is difficult to review ABI
changes between different versions rocrand when the output of
dpkg-gensymbols is full of kernels that change from release to release.
@cgmb cgmb merged commit 429bb62 into ROCm:develop Feb 7, 2023
@cgmb cgmb deleted the hide-kernel-symbols branch February 7, 2023 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants