I am creating a conda environment solely for using the tensorflow-gpu package from the conda-forge channel
conda create -n tst -c conda-forge tensorflow-gpu
This results in both tensorflow-gpu and tensorflow packages to be installed:
The following NEW packages will be INSTALLED:
_tflow_1100_select: 0.0.1-gpu
...
tensorboard: 1.10.0-py36_0 conda-forge
tensorflow: 1.10.0-py36_0 conda-forge
tensorflow-gpu: 1.10.0-hf154084_0
...
Then when I import tensorflow, it does not see GPUs:
>>> import tensorflow as tf
>>> tf.test.is_gpu_available()
2018-09-20 15:29:21.778708: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
False
Questions:
- why does conda install both
tensorflow-gpuandtensorflowpackages when only the former is required? - can both packages co-exist peacefully, and if so, how to switch between the two?
- Bonus points: why does everything work fine when installing from the main channel, i.e.
conda create -n tst tensorflow-gpu? (My uneducated guess is that inconda-forge, thetensorflow-gpupackage actually comes from the main channel and thus has a lower priority during import).