Is it possible to specify the CPU being used in the travis build? I am aware of the following settings at
Building on Multiple CPU Architectures - Travis CI However, they seem too broad for my use case (happy to be corrected).
In particular I have a branch that sometimes passes or fails unit tests and I can narrow down the cause to the CPU being used due to messages produced by tensorflow.
E.g. The passing build has these messages
2019-12-17 05:57:57.694007: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-12-17 05:57:57.713689: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2300000000 Hz
2019-12-17 05:57:57.714934: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x27ac2b20 executing computations on platform Host. Devices:
2019-12-17 05:57:57.714960: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): Host, Default Version
2019-12-17 05:58:08.328999: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 17067520 exceeds 10% of system memory.
2019-12-17 05:58:08.341346: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 17067520 exceeds 10% of system memory.
2019-12-17 05:58:08.355016: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 17067520 exceeds 10% of system memory.
2019-12-17 05:58:08.373354: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 17067520 exceeds 10% of system memory.
2019-12-17 05:58:08.391213: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 17067520 exceeds 10% of system memory.
However the failing build has these messages.
2019-12-19 03:42:03.611822: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-12-19 03:42:03.623020: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2800180000 Hz
2019-12-19 03:42:03.623234: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x28340c00 executing computations on platform Host. Devices:
2019-12-19 03:42:03.623259: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): Host, Default Version
2404c2413
From the messages it seems the 2.3GHz CPU produces a pass and 2.8Ghz CPU produces a failure.
I would like to debug a previously passing build for reproduce ability.
Currently all the debug builds I have launched always seem to be run on a 2.8GHz system/docker container. Is it possible to force the 2.3GHz settings? I have tried 20 repeated debug builds recently and they always seem to build on a 2.8GHz system.