summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2018-02-27 03:16:33 +0300
committerNikolay Amiantov <ab@fmap.me>2018-02-27 03:16:35 +0300
commit94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea (patch)
tree6ef1da71fb557118bf5747b53cdf411be1b0be6c
parentd86999ee25864075c3b99c8f08c2612c2918887d (diff)
downloadnixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.tar
nixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.tar.gz
nixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.tar.bz2
nixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.tar.lz
nixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.tar.xz
nixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.tar.zst
nixlib-94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea.zip
tensorflow: disable XLA without CUDA
This configuration is sadly broken.
-rw-r--r--pkgs/development/python-modules/tensorflow/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/tensorflow/default.nix b/pkgs/development/python-modules/tensorflow/default.nix
index e51ceb313ef2..85dd30118cc3 100644
--- a/pkgs/development/python-modules/tensorflow/default.nix
+++ b/pkgs/development/python-modules/tensorflow/default.nix
@@ -3,8 +3,9 @@
 , which, swig, binutils, glibcLocales
 , python, jemalloc, openmpi
 , numpy, six, protobuf, tensorflow-tensorboard, backports_weakref, mock, enum34, absl-py
-, xlaSupport ? true
 , cudaSupport ? false, nvidia_x11 ? null, cudatoolkit ? null, cudnn ? null
+# XLA without CUDA is broken
+, xlaSupport ? cudaSupport
 # Default from ./configure script
 , cudaCapabilities ? [ "3.5" "5.2" ]
 , sse42Support ? false
@@ -145,9 +146,10 @@ in buildPythonPackage rec {
 
   meta = with stdenv.lib; {
     description = "Computation using data flow graphs for scalable machine learning";
-    homepage = "http://tensorflow.org";
+    homepage = http://tensorflow.org;
     license = licenses.asl20;
     maintainers = with maintainers; [ jyp abbradar ];
     platforms = with platforms; if cudaSupport then linux else linux ++ darwin;
+    broken = !(xlaSupport -> cudaSupport);
   };
 }