-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -3,7 +3,7 @@ | |||
#define SUPERLU_CONFIG_H | ||||
|
||||
/* Enable metis */ | ||||
/* #undef HAVE_METIS */ | ||||
#define HAVE_METIS TRUE | ||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rgommers
|
#cmakedefine HAVE_METIS @HAVE_METIS@ |
The only issue here is that the generated superlu_config.h
is checked into the repo and that in SciPy we then need to patch the default value since we don't accept an external METIS dependency.
6 comments
on commit 6f7ea89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking superlu_config.h in the repo is for the projects that do not use CMake, rather, they want to use their own make. So this file needs to be present.
I don't have a good solution to satisfy both types of users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SciPy is in that second category (we use Meson rather than CMake). The generic answer there is that those users need to trigger the header file generation themselves. Meson does this without problems. For users of make
, this is normally done with configure
. Hardcoding values is probably never the correct answer, because it's harder to patch hardcoded values than it is to regenerate the header - you can simply expect make
users to do this I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed superlu_dist_config.h from github repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also removed the serial version superlu_config.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @xiaoyeli!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @xiaoyeli , I will update scipy's SuperLU accordingly in the coming weeks.
Over at SciPy PR scipy/scipy#21172, I get errors that METIS is not found even if this is set to
FALSE
. Must it be0
or something else? Note that we do not use your CMake file but compile ourselves.