git.iko.soy/typeable/nixpkgs
on master help sign in
tensorflow: disable XLA without CUDA

This configuration is sadly broken.

commit94ebc13a6ac5c6448a932ca48ae9e2bd9ce755ea authorNikolay Amiantov <ab@fmap.me> dateTue 27 Feb 2018, 03:16 (9 years ago) parentd86999e
1 file changed+4−2
pkgs/development/python-modules/tensorflow/default.nix+4−2
pkgs/development/python-modules/tensorflow/default.nix+4−2
@@ -3,8 +3,9 @@
33, which, swig, binutils, glibcLocales
44, python, jemalloc, openmpi
55, numpy, six, protobuf, tensorflow-tensorboard, backports_weakref, mock, enum34, absl-py
6−, xlaSupport ? true
76, cudaSupport ? false, nvidia_x11 ? null, cudatoolkit ? null, cudnn ? null
7+# XLA without CUDA is broken
8+, xlaSupport ? cudaSupport
89# Default from ./configure script
910, cudaCapabilities ? [ "3.5" "5.2" ]
1011, sse42Support ? false
@@ -145,9 +146,10 @@ in buildPythonPackage rec {
145146
146147 meta = with stdenv.lib; {
147148 description = "Computation using data flow graphs for scalable machine learning";
148− homepage = "http://tensorflow.org";
149+ homepage = http://tensorflow.org;
149150 license = licenses.asl20;
150151 maintainers = with maintainers; [ jyp abbradar ];
151152 platforms = with platforms; if cudaSupport then linux else linux ++ darwin;
153+ broken = !(xlaSupport -> cudaSupport);
152154 };
153155}