3

My Linux has 2 CPUs (16 cores per CPU). Each core has 2 threads.

CPU usage rate only 50% less if i use tf.Session(tf.ConfigProto())

CPU usage rate only 40% less if i use tf.Session(tf.ConfigProto(device_count={"CPU": 64}))

Cpu usage rate is 30-70% if i use tf.ConfigProto(device_count={"CPU": 32}, inter_op_parallelism_threads=1, intra_op_parallelism_threads=64, )

And in this configuration all cores are working, but the usage rate is only 30-80%

I have tested in Windows Server (1 cpu / 4 cores). Cpu usage rate is more than 90%.

what should I code can let Tensorflow use all cpu?

傅榕锋
  • 31
  • 3
  • Related, [Does TensorFlow job use multiple cores by default?](https://stackoverflow.com/q/42845261/608639) and [Does TensorFlow view all CPUs of one machine as ONE device?](https://stackoverflow.com/q/38836269/608639) – jww Sep 19 '18 at 06:08
  • Make sure your I/O and GPU aren't blocking. – Mateen Ulhaq Sep 19 '18 at 06:25

0 Answers0