linux-on-ibm-z / dockerfile-examples

A collection of examples to show how Dockerfiles could be created and used on Linux on IBM z Systems.
37 stars 62 forks source link

Tensorflow 2.11.0 - fails at configure step #24

Open korpx-z opened 10 months ago

korpx-z commented 10 months ago

I can't seem to build Tensorflow myself on zlinux - the configure step fails with:

Starting local Bazel server and connecting to it...
INFO: Reading 'startup' options from /tmp/source/tensorflow/.tf_configure.bazelrc: --host_jvm_args=-Xms0G --host_jvm_args=-Xmx0G
Server crashed during startup. Now printing /bazel/path/to/jvm.out
Invalid maximum heap size: -Xmx0G

ts_configure.bazelrc is obviously a generated file, and I'm having a hard time figuring out how these jvm options are assigned... is this Dockerfile still buildable on your end?

linuxonz commented 9 months ago

Hello,

Looks like the VM you are build on has less mem. JVM options are set in the tf_v2.11.0.patch file. You could try the following. Download tf_v2.11.0.patch (https://github.com/linux-on-ibm-z/scripts/blob/master/Tensorflow/2.11.0/patch/tf_v2.11.0.patch). Remove the JVM args from the patch file. Update the dockerfile to use your modified patch file and build the image.