Update scotch package for int32 (#21728)

This commit is contained in:
BerengerBerthoul 2021-02-19 12:14:36 +01:00 committed by GitHub
parent 2019d1deb7
commit 201000daca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,12 +102,14 @@ def configure(self):
'-DCOMMON_RANDOM_FIXED_SEED', '-DCOMMON_RANDOM_FIXED_SEED',
'-DSCOTCH_DETERMINISTIC', '-DSCOTCH_DETERMINISTIC',
'-DSCOTCH_RENAME', '-DSCOTCH_RENAME',
'-DIDXSIZE64', # SCOTCH_Idx typedef: indices for addressing
] ]
# SCOTCH_Num typedef: size of integers in arguments
if '+int64' in self.spec: if '+int64' in self.spec:
# SCOTCH_Num typedef: size of integers in arguments
cflags.append('-DINTSIZE64') cflags.append('-DINTSIZE64')
cflags.append('-DIDXSIZE64') # SCOTCH_Idx typedef: indices for addressing
else:
cflags.append('-DIDXSIZE32') # SCOTCH_Idx typedef: indices for addressing
if self.spec.satisfies('platform=darwin'): if self.spec.satisfies('platform=darwin'):
cflags.extend([ cflags.extend([