Skip to content

Target triple mismatch #4662

Closed
Closed
@joeatodd

Description

@joeatodd

Describe the bug
When attempting to build LAMMPS with Kokkos, I am experiencing silent failures of the offload bundling, due to a mismatch in targets. The offload bundler call is:

"/soft/llvm/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,sycl-nvptx64-nvidia-cuda" "-inputs=CMakeFiles/lmp.dir/home/joe/sources/lammps_stack/lammps/src/main.cpp.o" "-outputs=/tmp/main-335138.o,/tmp/main-967baf.o" "-unbundle" "-allow-missing-bundles"

but later:

"/soft/llvm/bin/clang-offload-deps" "-targets=sycl-nvptx64-nvidia-cuda--sm_80" "-outputs=/tmp/-fffb95.bc" "/tmp/-7e2d11.out"

Note the additional (erroneous?) --sm_80 which means nothing is found.

To Reproduce

I've tried to make a reproducer but have been unable, I'm afraid. So, building LAMMPS is required.

Environment (please complete the following information):

  • OS: Linux
  • Target device and vendor: Nvidia GPU
  • DPC++ version: Introduced in merge fc2f897

Additional context

I believe @AidanBeltonS has an upcoming PR which solves this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcudaCUDA back-end

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions