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

Link target library late, to avoid bloat during primary optimization #279

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vchuravy
Copy link
Member

Motivated by a conversation with @pmccormick, @neboat, and @stelleg.

Based of the benchmark code https://gist.github.com/vchuravy/7d639aedd98c51d32541ae999504685a, it's not yet behavioral identical to the C++ code in https://github.com/pmccormick/kitsune/blob/ea8ab2916f043a8b33bc20c1c1ec4f280a8f6c1d/kitsune/experiments/raytracer/raytrace-kokkos.cpp but currently performance seems to be not matching NVCC Pat also wrote a CUDA version in https://github.com/pmccormick/kitsune/blob/dev/12.x/kitsune/experiments/raytracer/raytrace-cuda.cu as a baseline

@maleadt
Copy link
Member

maleadt commented Jan 26, 2022

The NVPTX back-end user guide instructs to optimize after linking libdevice: https://llvm.org/docs/NVPTXUsage.html#linking-with-libdevice

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.

2 participants