Giter Site home page Giter Site logo

jchristopherson / linalg Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 1.0 8.83 MB

A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.

License: GNU General Public License v3.0

CMake 0.24% Fortran 72.11% C 3.65% PostScript 20.61% TeX 2.42% Harbour 0.98%
linear-algebra eigenvalues eigenvectors fortran blas lapack lu-decomposition qr-decomposition singular-value-decomposition cholesky-decomposition

linalg's People

Contributors

jchristopherson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sebastiandyrda

linalg's Issues

Dependency Build Scripts

The dependency portion of the build scripts currently work, but are in need of being cleaned up and redundant actions removed.

linalg_test failing initially but passing with rerun; ferror.h is not placed correctly

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.

How to get gfortran or ifort to find the ferror.mod file?

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
--------^

CMake Error at _deps/fortran_test_helper-build/install/cmake_install.cmake:69 (file): file INSTALL cannot find _deps/fortran_test_helper-src/doc/html

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.