Skip to content

Failed to compute shorthash for libnvrtc.so #129777

@judicaelclair

Description

@judicaelclair

With latest main, I get warning

CMake Warning at [..]/torch/share/cmake/Caffe2/public/cuda.cmake:150 (message):
  Failed to compute shorthash for libnvrtc.so

I believe this bug was introduced by 479ce5e as cmake now attempts to use the Python::Interpreter target, which cannot be resolved within an execute_process context. Should be reverted back to:

  if("${Python_EXECUTABLE}" STREQUAL "")
    set(_python_exe "python3")
  else()
    set(_python_exe "${Python_EXECUTABLE}")
  endif()
  execute_process(
      COMMAND "${_python_exe}" -c

Alternatively, the python executable path should be manually extracted from Python::Interpreter.

Versions

Torch version db4c7bb

cc @malfet @seemethere

Metadata

Metadata

Assignees

Labels

module: buildBuild system issuesmodule: regressionIt used to work, and now it doesn'ttriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions