Libtorch build for ROCM error: “aten/src/THH” not exist #126640
Labels
actionable
module: abi
libtorch C++ ABI related problems
module: build
Build system issues
module: rocm
AMD GPU support for Pytorch
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Issue description
I want to build libtorch for rocm from source and followed the instructions from here:Building libtorch using CMake. It occured this error:
Directory “pytorch/aten/src/THH” does’t exist but it should be. According to pytorch/aten/CMakeLists.txt:
If build for cuda, there exists the directory “pytorch/aten/src/THC”, but for rocm, the corresponding directory “THH” does not exist. I‘ve searched several versions pytorch source code, none of them have this directory.
So can someone tell me where can get this lost directory? Or have I missed something to install? I would appreciate for your help with this problem.
cmake -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DPYTHON_EXECUTABLE:PATH=
which python3-D CMAKE_PREFIX_PATH=/opt/rocm-6.1.0 -DCMAKE_INSTALL_PREFIX:PATH=../pytorch-install ../pytorch
cc @malfet @seemethere @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang
The text was updated successfully, but these errors were encountered: