Skip to content

[BUG] GCC 10 linking dp_ipi fails with CUDA #1724

@njzjz

Description

@njzjz

Bug summary

When linking dp_ipi, an error is thrown, saying a hidden symbol in libcudart is referenced by DSO:

[ 91%] Linking CXX executable dp_ipi
ld: dp_ipi: hidden symbol `cudaGetDeviceCount' in /usr/local/cuda/lib64/libcudart_static.a(libcudart_static.a.o) is referenced by DSO
ld: final link failed: bad value

GCC 7 does not have this issue.

DeePMD-kit Version

2.1.1

TensorFlow Version

2.7.1

How did you download the software?

Built from source

Input Files, Running Commands, Error Log, etc.

See above.

Steps to Reproduce

Use CMake to build C++ interface.

Further Information, Files, and Links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions