From 9d2fce454446e76c6362eca2e5489b4af28e126a Mon Sep 17 00:00:00 2001 From: lpoirel Date: Wed, 21 Mar 2018 20:22:50 +0100 Subject: [PATCH] scotch%intel: remove restrict (#7148) The restrict compilation option with icc causes deadlock when multithreading is used. This issue has already been reported to the Scotch development team, but for current versions it is more reliable not to use the restrict compilation option. --- var/spack/repos/builtin/packages/scotch/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/scotch/package.py b/var/spack/repos/builtin/packages/scotch/package.py index 7cebeed49d..712cd0ca6c 100644 --- a/var/spack/repos/builtin/packages/scotch/package.py +++ b/var/spack/repos/builtin/packages/scotch/package.py @@ -159,7 +159,7 @@ def configure(self): if self.compiler.name == 'gcc': cflags.append('-Drestrict=__restrict') elif self.compiler.name == 'intel': - cflags.append('-restrict') + cflags.append('-Drestrict=') mpicc_path = self.spec['mpi'].mpicc if '+mpi' in self.spec else 'mpicc' makefile_inc.append('CCS = $(CC)')