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

[LD] Handle alias in nvptx-ld as nvptx's .alias does not handle it fully #32

Open
tob2 opened this issue Mar 22, 2022 · 0 comments
Open

Comments

@tob2
Copy link
Contributor

tob2 commented Mar 22, 2022

Some ".alias" support in nvptx-ld would be useful due to the limitations listed below – and complete lack before PTX ISA 6.3 (CUDA 10). Namely:

https://gcc.gnu.org/pipermail/gcc-patches/2022-March/592127.html states:

Starting with ptx isa version 6.3, a ptx directive .alias is available.
Use this directive to support symbol aliases, as far as possible. […]
The alias support has the following limitations.

Only function aliases are supported.

Weak aliases are not supported. […]

Aliases to weak symbols are not supported […]

At some point we may add support in the nvptx-tools linker for symbol
aliases, and define f.i. malias=ptx and malias=ld to choose between the two in
the compiler.

[...]

An example of where this support is useful, is the OvO (OpenMP vs Offload) testsuite. The testsuite passes already at -O2. But at -O0, there are errors in some c++ test-cases due to missing symbol alias support.

Likewise sollve_vv's alpaka_complex_template.cpp testcase, which also fails with -O0.

@tschwinge @vries

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

No branches or pull requests

1 participant