Giter Club home page Giter Club logo

nlafet / starneig Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 2.0 28.17 MB

A Task-based Library for Solving Dense Nonsymmetric Eigenvalue Problems

Home Page: https://nlafet.github.io/StarNEig/

License: Other

CMake 2.37% C 94.57% C++ 0.23% Cuda 2.83%
distributed-memory eigenvalueproblems eigenvalues eigenvectors gpu hessenberg hessenberg-forms hessenberg-reduction library mpi nlafet parallel-computing qz-algorithm schur-decomposition schur-form schur-reduction shared-memory starpu task-based

starneig's People

Contributors

mirkomyl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

starneig's Issues

Error in running tests: Symbol not found: _starpu_mpi_world_rank

Opening a separate issue, so it is easier to track.
Perhaps this is why tests fail? Or at least one of the reasons.

Process:         starneig-test [3081]
Path:            /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_StarNEig/StarNEig/work/build/starneig-test
Identifier:      starneig-test
Version:         ??? (???)
Code Type:       PPC (Native)
Parent Process:  ctest-orig [3043]

Date/Time:       2023-06-02 19:57:59.391 +0800
OS Version:      Mac OS X 10.6 (10A190)
Report Version:  6

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000008fe01078
Crashed Thread:  0

Dyld Error Message:
  Symbol not found: _starpu_mpi_world_rank
  Referenced from: /opt/local/lib/libstarpu-1.4.1.dylib
  Expected in: dynamic lookup

What is there:

36-25% nm -arch ppc -g /opt/local/lib/libstarpu-1.4.1.dylib | grep mpi
0001eeec T _starpu_asynchronous_mpi_ms_copy_disabled
0001ef90 T _starpu_mpi_ms_worker_get_count

Build failure when _aligned_alloc is not present: Undefined symbols: "_aligned_alloc", referenced from: _alloc_matrix in common.c.o

CMakeLists check for presence of aligned_alloc, but then nothing is done if it is not present.

CHECK_FUNCTION_EXISTS (aligned_alloc ALIGNED_ALLOC_FOUND)

Expectedly, the build fails then with:

Undefined symbols:
  "_aligned_alloc", referenced from:
      _alloc_matrix in common.c.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [starneig-test] Error 1

Compiler recommends including stdlib.h, but it does not help:

/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_StarNEig/StarNEig/work/StarNEig-0.1.8/test/common/common.c: In function 'alloc_matrix':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_StarNEig/StarNEig/work/StarNEig-0.1.8/test/common/common.c:108:11: warning: implicit declaration of function 'aligned_alloc' [-Wimplicit-function-declaration]
  108 |     ptr = aligned_alloc(64, n*(*ld)*elemsize);
      |           ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_StarNEig/StarNEig/work/StarNEig-0.1.8/test/common/common.c:43:1: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
   42 | #include <stdio.h>
  +++ |+#include <stdlib.h>
   43 | #include <stdlib.h>
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_StarNEig/StarNEig/work/StarNEig-0.1.8/test/common/common.c:108:11: warning: incompatible implicit declaration of built-in function 'aligned_alloc' [-Wbuiltin-declaration-mismatch]
  108 |     ptr = aligned_alloc(64, n*(*ld)*elemsize);
      |           ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_StarNEig/StarNEig/work/StarNEig-0.1.8/test/common/common.c:108:11: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'

Configure opportunistically picks `lfortran`

lfortran is an experimental compiler and it should not, I believe, be prioritized even if it is installed.
However I get this on macOS Sonoma:

-- Check for working Fortran compiler: /opt/local/bin/lfortran
-- Check for working Fortran compiler: /opt/local/bin/lfortran - broken
CMake Error at /opt/local/share/cmake-3.24/Modules/CMakeTestFortranCompiler.cmake:61 (message):
  The Fortran compiler

    "/opt/local/bin/lfortran"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_math_StarNEig/StarNEig/work/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make -f Makefile cmTC_5ddb6/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_5ddb6.dir/build.make CMakeFiles/cmTC_5ddb6.dir/build
    Building Fortran object CMakeFiles/cmTC_5ddb6.dir/testFortranCompiler.f.o
    /opt/local/bin/lfortran   -pipe -Os -m64  -c /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_math_StarNEig/StarNEig/work/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_5ddb6.dir/testFortranCompiler.f.o
    The following arguments were not expected: -m64 -Os -pipe
    Run with --help for more information.
    make[1]: *** [CMakeFiles/cmTC_5ddb6.dir/testFortranCompiler.f.o] Error 109
    make: *** [cmTC_5ddb6/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  src/CMakeLists.txt:32 (project)

-- Configuring incomplete, errors occurred!

Needless to say, gfortran is installed and works perfectly fine.

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.