Open petronny opened 1 year ago
And tensorflow-rocm and tensorflow-rocm-opt cannot use the same srcdir. So the other one could be tmpoptrocm-src
.
patched with bfe29ff
leaving this patched until we don't see the --gpu
option in the [community] package for tensorflow. https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/blob/main/PKGBUILD?ref_type=heads#L174
Removing the patch label as the upstream PKGBUILD has removed the usage of build_pip_package
and uses wheel
instead. As such I have reverted the patch. Of course, we will need to add in this patch (at least for building rocm and optrocm in two separate dirs) later on, but I want to sort out the other issues that we encounter in the build first.
In
build()
,bazel-bin/tensorflow/tools/pip_package/build_pip_package
is pointed totensorflow/tools/pip_package/build_pip_package.sh
.However,
build_pip_package.sh --help
shows no--gpu
option in its usage.Maybe it should be changed to
--gpudirect
or--rocm
now.And please also consider setting the
srcdir
forbuild_pip_package
, or else it will usemktemp -d -t tmp.XXXXXXXXXX
and break the build when/tmp
is not big enough. I guess"${srcdir}"/tmprocm
is fordstdir
. So the updated command may be like