Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904882 - =sci-libs/caffe2-2.0.0-r1[cuda] fails with "Imported target "torch::cudnn" includes non-existent path"
Summary: =sci-libs/caffe2-2.0.0-r1[cuda] fails with "Imported target "torch::cudnn" i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-23 14:22 UTC by Adrien Dessemond
Modified: 2023-04-24 08:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (cudnn_include_fix.patch,526 bytes, patch)
2023-04-23 14:22 UTC, Adrien Dessemond
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2023-04-23 14:22:10 UTC
Created attachment 860647 [details, diff]
Patch

When emerged with the "cuda" USE flag, the configuration step fails due to an invalid path:

Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -ffat-lto-objects
C++             -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -ffat-lto-objects -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -fPIC -Wall -Wextra -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overflow
Linker flags:
Executable       -rdynamic
Module          
Shared           -Wl,--no-as-needed -rdynamic

-- Configuring done (16.6s)
CMake Error in caffe2/CMakeLists.txt:
  Imported target "torch::cudnn" includes non-existent path

    "/var/tmp/portage/sci-libs/caffe2-2.0.0-r1/work/pytorch-2.0.0/cmake/../third_party/cudnn_frontend/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Expected CUDNN header files are found in /opt/cuda/include

The attached patch solves the issue.
Comment 1 Larry the Git Cow gentoo-dev 2023-04-24 08:36:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d6a404d63ba3914c98344efe64d9b631089e3e1

commit 4d6a404d63ba3914c98344efe64d9b631089e3e1
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2023-04-24 08:06:19 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2023-04-24 08:35:48 +0000

    sci-libs/caffe2: fix cudnn include path
    
    Closes: https://bugs.gentoo.org/904882
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 sci-libs/caffe2/caffe2-2.0.0-r2.ebuild                     |  1 +
 sci-libs/caffe2/files/caffe2-2.0.0-cudnn_include_fix.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)