jchristopherson / linalg Goto Github PK
View Code? Open in Web Editor NEWA linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
License: GNU General Public License v3.0
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
License: GNU General Public License v3.0
The dependency portion of the build scripts currently work, but are in need of being cleaned up and redundant actions removed.
Investigate leveraging https://github.com/mpimd-csc/qrupdate-ng to keep instep with a maintained code body for QRUpdate.
Weird results with test: if ctest test
is run, linalg_test
fails. However when I rerun with ctest test --rerun-failed --output-on-failure
, it passes. Tried twice, it is reproducible.
10:linalg-1.7.1 svacchanda$ /usr/bin/sudo ctest test
Test project /opt/local/var/macports/build/_opt_PPCRosettaPorts_math_linalg/linalg/work/jchristopherson-linalg-76e7aad
Start 1: linalg_test
1/2 Test #1: linalg_test ......................***Failed 3.64 sec
Start 2: linalg_c_test
2/2 Test #2: linalg_c_test .................... Passed 0.66 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 4.33 sec
The following tests FAILED:
1 - linalg_test (Failed)
Errors while running CTest
Output from these tests are in: /opt/local/var/macports/build/_opt_PPCRosettaPorts_math_linalg/linalg/work/linalg-1.7.1/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
10:linalg-1.7.1 svacchanda$ /usr/bin/sudo ctest test --rerun-failed --output-on-failure
Test project /opt/local/var/macports/build/_opt_PPCRosettaPorts_math_linalg/linalg/work/jchristopherson-linalg-76e7aad
Start 1: linalg_test
1/1 Test #1: linalg_test ...................... Passed 3.84 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 3.86 sec
P. S. Also the build cannot find ferror.h
in ferror-src/include
, since relevant flag is not passed. I had to copy that header to ferror-build/include
.
I am using the CMake files to compile your repositories. I cloned ferror, created a folder called "build" in ferror, and ran Cmake inside the build folder successfully. I was then able to build ferror and install it.
Next, I attempted to do the same for linalg. Linalg, of course, depends on ferror. However, the compilation does not work for linalg. Cmake does find the ferror package, because I gave the path as a command line option to Cmake. But the gfortran and ifort compilers are unable to find the ferror.mod file or shared libraries. Could the Cmake file for linalg correctly provide the ferror include paths to the Fortran compiler, so that the compiler can link ferror into the linalg executables? How would this be implemented in Cmake?
Some of the debug output follows. When I run CMake, I do get the message:
-- FERROR library found.
When I enter
cmake --build .
with gfortran, I get the error:
/linalg/src/linalg_core.f90:17:8:
use ferror, only : errors
1
Fatal Error: Can't open module file ‘ferror.mod’ for reading at (1): No such file or directory
compilation terminated.
With ifort, I get the error:
Building Fortran object src/CMakeFiles/linalg.dir/linalg_core.f90.o
/home/u31/spotnitz/linalg/src/linalg_core.f90(17): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [FERROR]
use ferror, only : errors
--------^
Any idea what goes wrong here?
-- Installing: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_linalg/linalg/work/destroot/opt/local/include/fortran_test_helper@fth_asserts.smod
CMake Error at _deps/fortran_test_helper-build/install/cmake_install.cmake:69 (file):
file INSTALL cannot find
"/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_linalg/linalg/work/build/_deps/fortran_test_helper-src/doc/html":
No such file or directory.
Call Stack (most recent call first):
_deps/fortran_test_helper-build/cmake_install.cmake:52 (include)
tests/fortran_test_helper/cmake_install.cmake:42 (include)
tests/cmake_install.cmake:42 (include)
cmake_install.cmake:62 (include)
make: *** [install/fast] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_linalg/linalg/work/build'
Command failed: cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_linalg/linalg/work/build" && /usr/bin/make -w install/fast DESTDIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_linalg/linalg/work/destroot
Exit code: 2
Error: Failed to destroot linalg: command execution failed
Has been building earlier. Maybe something changed with CMake update.
There are a series of complex-valued C API routines that need some work and testing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.