Package Details: python-tensorflow-rocm 2.20.0-2

Git Clone URL: https://aur.archlinux.org/tensorflow-rocm.git (read-only, click to copy)
Package Base: tensorflow-rocm
Description: Library for computation using data flow graphs for scalable machine learning (with ROCM)
Upstream URL: https://www.tensorflow.org/
Licenses: Apache-2.0
Conflicts: python-tensorflow
Provides: python-tensorflow
Submitter: acxz
Maintainer: lubosz
Last Packager: lubosz
Votes: 11
Popularity: 0.000000
First Submitted: 2020-07-03 20:44 (UTC)
Last Updated: 2026-01-17 16:19 (UTC)

Required by (71)

Sources (8)

Pinned Comments

lubosz commented on 2026-01-16 23:16 (UTC)

If you are interested in submitting patches, please use my github repo: https://github.com/lubosz/tensorflow-rocm

Latest Comments

« First ‹ Previous 1 2

mpeschel10 commented on 2023-05-31 23:45 (UTC)

Hi. I spent a long time trying to compile tensorflow-rocm but failed. However, you can also run the official rocm/tensorflow docker image, which works for me on Arch with no dependencies other than docker.

Link to the rocm tensorflow docker hub page

In summary:

sudo systemctl start systemd-timesyncd
sudo docker run -it --network=host --device=/dev/kfd --device=/dev/dri --ipc=host --shm-size 16G --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/dockerx:/dockerx rocm/tensorflow:latest

My more in depth tutorial here: https://github.com/mpeschel10/test-tensorflow-rocm

wuxxin commented on 2023-03-21 19:15 (UTC)

i do not use this version of tensorflow anymore, please feel free to adopt.

petronny commented on 2023-02-15 10:32 (UTC)

roctracer is needed to build this package. And after adding roctracer, I get the following error:

ERROR: /build/.cache/bazel/_bazel_builduser/602d407ea92ccabfb83888bc2779e990/external/bazel_tools/platforms/BUILD:84:6: in alias rule @bazel_tools//platforms:linux: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /build/.cache/bazel/_bazel_builduser/602d407ea92ccabfb83888bc2779e990/external/bazel_tools/platforms/BUILD:84:6: Analysis of target '@bazel_tools//platforms:linux' failed
ERROR: /build/tensorflow-amd/src/tensorflow-2.9.2-amd/tensorflow/tools/pip_package/BUILD:277:10: While resolving toolchains for target //tensorflow/tools/pip_package:build_pip_package: Target @local_execution_config_platform//:platform was referenced as a platform, but does not provide PlatformInfo
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: 
INFO: Elapsed time: 30.803s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 8 targets configured)
==> ERROR: A failure occurred in build().

https://github.com/arch4edu/cactus/actions/runs/4182687113/jobs/7246266093

dagu commented on 2020-08-10 08:32 (UTC) (edited on 2020-08-10 08:32 (UTC) by dagu)

[code] INFO: From Compiling tensorflow/core/kernels/sparse_tensor_dense_matmul_op_gpu.cu.cc: clang-11: warning: /usr/bin/gcc-9: 'linker' input unused [-Wunused-command-line-argument] clang-11: warning: argument unused during compilation: '--hip-device-lib-path=/opt/rocm/lib' [-Wunused-command-line-argument] clang-11: warning: /usr/bin/gcc-9: 'linker' input unused [-Wunused-command-line-argument] In file included from tensorflow/core/kernels/sparse_tensor_dense_matmul_op_gpu.cu.cc:23: In file included from ./tensorflow/core/util/gpu_kernel_helper.h:25: ./tensorflow/core/util/gpu_device_functions.h:828:25: error: redefinition of 'GpuAtomicMax' device inline int64 GpuAtomicMax(int64 ptr, int64 value) { ^ ./tensorflow/core/util/gpu_device_functions.h:796:29: note: previous definition is here device inline long long GpuAtomicMax(long long ptr, long long value) { ^ ./tensorflow/core/util/gpu_device_functions.h:898:25: error: redefinition of 'GpuAtomicMin' device inline int64 GpuAtomicMin(int64 ptr, int64 value) { ^ ./tensorflow/core/util/gpu_device_functions.h:866:29: note: previous definition is here device inline long long GpuAtomicMin(long long ptr, long long value) { ^ 2 errors generated when compiling for gfx803. ERROR: ~/tensorflow-rocm/src/tensorflow-2.3.0-opt-rocm/tensorflow/core/kernels/BUILD:5545:18: output 'tensorflow/core/kernels/_objs/sparse_tensor_dense_matmul_op_gpu/sparse_tensor_dense_matmul_op_gpu.cu.pic.o' was not created ERROR: ~/tensorflow-rocm/src/tensorflow-2.3.0-opt-rocm/tensorflow/core/kernels/BUILD:5545:18: not all outputs were created or valid [/code]

tobol commented on 2020-07-25 10:40 (UTC)

This package doesn't build. I've flagged it, but acxz refuses to act.

soho commented on 2020-07-06 14:21 (UTC)

May you please upload a working binary at some place?

The build fails in a clean chroot: '''ROCm Configuration Error: Cannot find rocm library hip_hcc'''

acxz commented on 2020-07-03 20:57 (UTC)

Development is on Github: https://github.com/rocm-arch/tensorflow-rocm Please open issues and PRs there instead of commenting.