Comments (11)
Does
-DGBNCPUFEAT=1
solve the problem or shall I keep this issue open?
It took some time until my PR got merged, but yes, it seems that GraphBLAS was built correctly on the old Intel systems where the problem was previously present:
https://ports.macports.org/port/SuiteSparse_GraphBLAS/details/
So yes, -DGBNCPUFEAT=1
works.
from suitesparse.
I've had other portability issues with the cpu_features package.
I should add an option to disable it completely. A cmake check could be written to detect this. Not having cou_features would limit performance in a few semirings but it make GraphBLAS more portable.
So let's consider this something that will be fixed.
CORRECTION: I do have an option ... see below.
from suitesparse.
I do have a -DGBNCPUFEAT=1 option that you can pass to cmake. It's not made visible with a cmake option command like this option:
SuiteSparse/GraphBLAS/CMakeLists.txt
Line 103 in fcfefe6
but you can set it with cmake -DGBNCPUFEAT=1 ...
I use it here:
SuiteSparse/GraphBLAS/CMakeLists.txt
Lines 131 to 142 in fcfefe6
It's described in the GraphBLAS User Guide.
I should add this to the CMakeLists.txt file though, so it's more easily available to cmake gui interfaces like ccmake, though:
option ( GRAPHBBLAS_USE_CPU_FEATURES "use Google cpu_features, default ON " ON )
from suitesparse.
If I understand you correctly, -DGBNCPUFEAT=1
should avoid this problem in 7.5.1? I'll submit a PR with this to MacPorts, but only for the affected old systems.
from suitesparse.
Yes, adding that to the cmake options should get MacPorts to work for a system where cpu_features fails to compile/link.
from suitesparse.
Here's what it should look like (excerpts of the cmake output). This is on my M1 Mac
mac $ pwd
/Users/davis/dev2/SuiteSparse/GraphBLAS
mac $ cd build
mac $ cmake -DGBNCPUFEAT=1 ..
-- Building SuiteSparse:GraphBLAS version: v9.0.1, date: Jan 20, 2024
...
-- cpu_features (by google.com): disabled
...
-- CMAKE C flags: -DGBNCPUFEAT -O3 -DNDEBUG
-- ------------------------------------------------------------------------
-- JIT configuration:
-- ------------------------------------------------------------------------
-- JIT C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- JIT C flags: -DGBNCPUFEAT -O3 -DNDEBUG -fPIC -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk
...
-- ------------------------------------------------------------------------
-- CMAKE report for: GraphBLAS
-- ------------------------------------------------------------------------
...
-- C flags: -DGBNCPUFEAT -O3 -DNDEBUG
...
-- ------------------------------------------------------------------------
...
from suitesparse.
@DrTimothyAldenDavis @szhorvat FYI, this issue seems to be affecting only Intel. On PowerPC I have GraphBLAS
building with no fixes from my side needed.
from suitesparse.
Does -DGBNCPUFEAT=1
solve the problem or shall I keep this issue open?
from suitesparse.
@DrTimothyAldenDavis Just to make sure, can it introduce undesirable effect to PowerPC? Because it got merged into Macports without checking on it so far.
from suitesparse.
@DrTimothyAldenDavis Just to make sure, can it introduce undesirable effect to PowerPC? Because it got merged into Macports without checking on it so far.
This should be fine. I only use cpu_features to determine if an x86 processor can use AVX2 or AVX512. So if cpu_features is present, I would get the answer "no", and if cpu_features is not present, I get the same answer.
from suitesparse.
@DrTimothyAldenDavis Thank you! Then all good.
from suitesparse.
Related Issues (20)
- SuiteSparse 5.12.0 fails when using an unmodified METIS 5.1.0 (which is not supported; SuiteSparse's own revised METIS is required) HOT 9
- License inconsistency for CHOLMOD/Include HOT 3
- GCC warning about overflow in SPEX HOT 8
- Versions in release notes HOT 3
- Copying form of `cholmod_*_xtype` HOT 1
- Symbol suffix looks inconsistent with OpenBLAS's definition of symbol suffix HOT 2
- undefined reference to `GB_JITpackage_nfiles` HOT 64
- ABI break in CHOLMOD 5.1.0 without SOVERSION bump HOT 11
- cmake cache variables: Package_USE_OPENMP and SUITESPARSE_USE_OPENMP HOT 5
- Building static and shared libraries with LLVM Clang on Windows fails HOT 8
- CMake OpenMP target incompatible with Clang using MSVC and GNU CLI HOT 8
- Build error for complex floating point operations in GraphBLAS with `clang-cl` HOT 9
- GraphBLAS uses `_Generic` selections with potentially compatible types HOT 6
- Advice on the use of C(X)Sparse HOT 2
- issue with trying to build cholmod_cuda HOT 3
- [Using CHOLMOD]How to set linker type(with or without underscore as suffix) for BLAS complied by MinGW64? HOT 10
- Compilation Error in ParU string printing macro HOT 6
- SPQR solve vs UMFPACK normal equations solve HOT 8
- Out of Memory on SparseQR HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suitesparse.