katago: Use stdenv.hostPlatform.avx2Support
This commit is contained in:
parent
9932103ead
commit
9daf938d37
@ -14,11 +14,12 @@
|
|||||||
, ocl-icd ? null
|
, ocl-icd ? null
|
||||||
, gperftools ? null
|
, gperftools ? null
|
||||||
, eigen ? null
|
, eigen ? null
|
||||||
, enableAVX2 ? false
|
, enableAVX2 ? stdenv.hostPlatform.avx2Support
|
||||||
, enableBigBoards ? false
|
, enableBigBoards ? false
|
||||||
, enableCuda ? false
|
, enableCuda ? false
|
||||||
, enableGPU ? true
|
, enableGPU ? true
|
||||||
, enableTcmalloc ? true}:
|
, enableTcmalloc ? true
|
||||||
|
}:
|
||||||
|
|
||||||
assert !enableGPU -> (
|
assert !enableGPU -> (
|
||||||
eigen != null &&
|
eigen != null &&
|
||||||
@ -103,8 +104,6 @@ in env.mkDerivation rec {
|
|||||||
--prefix LD_LIBRARY_PATH : "/run/opengl-driver/lib"
|
--prefix LD_LIBRARY_PATH : "/run/opengl-driver/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Go engine modeled after AlphaGo Zero";
|
description = "Go engine modeled after AlphaGo Zero";
|
||||||
homepage = "https://github.com/lightvector/katago";
|
homepage = "https://github.com/lightvector/katago";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user