python3Packages.torch: explicitly include libopenmp on Darwin x86_64
This commit is contained in:
@@ -526,9 +526,9 @@ buildPythonPackage rec {
|
||||
blas
|
||||
blas.provider
|
||||
]
|
||||
# Including openmp leads to two copies being used. This segfaults on ARM.
|
||||
# Including openmp leads to two copies being used on ARM, which segfaults.
|
||||
# https://github.com/pytorch/pytorch/issues/149201#issuecomment-2776842320
|
||||
# ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]
|
||||
++ lib.optionals (stdenv.cc.isClang && !stdenv.hostPlatform.isAarch64) [ llvmPackages.openmp ]
|
||||
++ lib.optionals cudaSupport (
|
||||
with cudaPackages;
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user