Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fortran interface bindings to sperr

License

NotificationsYou must be signed in to change notification settings

ofmla/fortran-sperr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LicenseFortranfpmBuild Status

Fortran bindings toSPERR - a library for lossy compression of scientific data. 🗜️

Build Instructions

To build the examples in this project you need:

CMake

InCMakeLists.txt, the project usesfind_package(PkgConfig REQUIRED) andpkg_search_module(LIBRARY_NAME REQUIRED SPERR) to locate theSPERR library. This means that users no longer need to manually specify the paths to the include and lib directories.

To configure the build, simply run:

cmake -S .

To build the executables usingmake, run:

make

The executables will be named2d and3d, and they will be placed in the root directory.

Please note that when installing the SPERR library with CMake, you may need to usesudo as regular users typically don't have write permissions for directories like/usr and/usr/local in modern Linux systems.

fpm

Alternatively, you can build the executables via fpm with (assuming SPERR is already installed):

fpm build --link-flag "-L/path/to/SPERR/lib"

or by setting theFPM_LDFLAGS=-L/path/to/SPERR/lib environment variable and thenfpm build. The executables will be namedtest_2d andtest_3d. They will be located in a folder namedapp, which resides within another folder named after the compiler and hash in thebuild directory.

When using fpm to build executables, the build artifacts are placed in a directory named after the compiler and hash (e.g.,gfortran_50F62D7499E64B65). Here, the hash (50F62D7499E64B65 in this example) represents a unique identifier for the specific build configuration. If you need more accurate information about how fpm organizes build artifacts and the significance of the hash, it's best to consult the fpm documentation or reach out to the developers of the tool for clarification.

Notes 📄

  • Input files, such aslena512.float anddensity_128x128x256.d64 required by the examples, are not included. Obtain themhere and place them in the corresponding folder depending on the build system used.
  • (de)compression functions are working properly but proper functions for bit stream I/O are still required for real applications
  • The folder compiler+hash mentioned in the fpm section can be named differently depending on the compiler used. For example, it might be ifort+hash or gfortran+hash depending on whether Intel Fortran or GNU Fortran is used.

License

fortran-sperr is distributed under the BSD license. See the includedLICENSE file for details.

About

Fortran interface bindings to sperr

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp