Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
624b576b
Commit
624b576b
authored
9 years ago
by
Denis Davydov
Browse files
Options
Downloads
Patches
Plain Diff
metis: fix compilation with Clang 7.3.0, add tests
parent
f5a77d39
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/metis/package.py
+18
-0
18 additions, 0 deletions
var/spack/repos/builtin/packages/metis/package.py
with
18 additions
and
0 deletions
var/spack/repos/builtin/packages/metis/package.py
+
18
−
0
View file @
624b576b
...
@@ -79,10 +79,28 @@ def install(self, spec, prefix):
...
@@ -79,10 +79,28 @@ def install(self, spec, prefix):
if
'
+double
'
in
spec
:
if
'
+double
'
in
spec
:
filter_file
(
'
REALTYPEWIDTH 32
'
,
'
REALTYPEWIDTH 64
'
,
metis_header
)
filter_file
(
'
REALTYPEWIDTH 32
'
,
'
REALTYPEWIDTH 64
'
,
metis_header
)
# Make clang 7.3 happy.
# Prevents "ld: section __DATA/__thread_bss extends beyond end of file"
# See upstream LLVM issue https://llvm.org/bugs/show_bug.cgi?id=27059
# Adopted from https://github.com/Homebrew/homebrew-science/blob/master/metis.rb
if
spec
.
satisfies
(
'
%clang@7.3.0
'
):
filter_file
(
'
#define MAX_JBUFS 128
'
,
'
#define MAX_JBUFS 24
'
,
join_path
(
source_directory
,
'
GKlib
'
,
'
error.c
'
))
with
working_dir
(
build_directory
,
create
=
True
):
with
working_dir
(
build_directory
,
create
=
True
):
cmake
(
source_directory
,
*
options
)
cmake
(
source_directory
,
*
options
)
make
()
make
()
make
(
"
install
"
)
make
(
"
install
"
)
# now run some tests:
for
f
in
[
"
4elt
"
,
"
copter2
"
,
"
mdual
"
]:
graph
=
join_path
(
source_directory
,
'
graphs
'
,
'
%s.graph
'
%
f
)
Executable
(
join_path
(
prefix
.
bin
,
'
graphchk
'
))(
graph
)
Executable
(
join_path
(
prefix
.
bin
,
'
gpmetis
'
))(
graph
,
'
2
'
)
Executable
(
join_path
(
prefix
.
bin
,
'
ndmetis
'
))(
graph
)
graph
=
join_path
(
source_directory
,
'
graphs
'
,
'
test.mgraph
'
)
Executable
(
join_path
(
prefix
.
bin
,
'
gpmetis
'
))(
graph
,
'
2
'
)
graph
=
join_path
(
source_directory
,
'
graphs
'
,
'
metis.mesh
'
)
Executable
(
join_path
(
prefix
.
bin
,
'
mpmetis
'
))(
graph
,
'
2
'
)
# install GKlib headers, which will be needed for ParMETIS
# install GKlib headers, which will be needed for ParMETIS
GKlib_dist
=
join_path
(
prefix
.
include
,
'
GKlib
'
)
GKlib_dist
=
join_path
(
prefix
.
include
,
'
GKlib
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment