llnl / llnl/smith

build on nvidia machines with enzyme

Open
#1,653 0 comments 0 reactions 1 assignee Claimed by @chapman39 View on GitHub
cuda
Dominant language
C++
Stars
245
Forks
36
Avg merge
8d 23h
Merged PRs (30d)
4

Description

In order to build enzyme on nvidia-based machines (e.g. matrix), we need to set the CMAKE_CUDA_COMPILER to LLVM rather than NVCC. This has some minor inconveniences such as needing to remove the `-Xlinker`.

The issue I got stuck on was despite setting the cuda compiler to LLVM, it still used nvlink during the final link step, causing this issue:

> nvlink error : Undefined reference to 'enzyme_interleave' in 'examples/explicit/CMakeFiles/explicit_dfem_gpu.dir/dfem_gpu.cpp.o'
make[3]: ***

I believe we need to set the cuda linker somehow to something other than nvlink.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.