Owl

Owl -- OCaml 科学和工程计算。「Owl - OCaml Scientific and Engineering Computing @ http://ocaml.xyz」

Github星跟踪图

Owl - OCaml Scientific and Engineering Computing

Owl is a dedicated system for scientific and engineering computing in the
functional programming language OCaml.

This software is currently maintained by Komposio, a
Helsinki-based software consulting company.

Visit the project website at ocaml.xyz

Optional features

You can enable optional features by setting the following variables to 1
before compilation:

  • OWL_ENABLE_EXPMODE=1: turn on experiment features like -flto

  • OWL_ENABLE_DEVMODE=1: turn on all the warnings in development

  • OWL_ENABLE_OPENMP=1: turn on OpenMP support in core module and
    the automatic parameter tuning (AEOS)

  • OWL_CFLAGS allows to change the default flags passed to the C targets,
    it defaults to

    OWL_CFLAGS="-g -O3 -Ofast -march=native -mfpmath=sse -funroll-loops -ffast-math -DSFMT_MEXP=19937 -msse2 -fno-strict-aliasing -Wno-tautological-constant-out-of-range-compare"`
    
  • OWL_AEOS_CFLAGS allows to change the default flags passed to the C targets
    when compiling AEOS. It defaults to

    OWL_AEOS_CFLAGS="-g -O3 -Ofast -march=native -funroll-loops -ffast-math -DSFMT_MEXP=19937 -fno-strict-aliasing"
    
  • OWL_DISABLE_LAPACKE_LINKING_FLAG=1 disables the -llapacke flag in the
    linking options. This is useful when you have lapacke installed on
    non-standard localtion.

If you are not using opam, you should run make clean before recompiling
the library after having changed any of those environment variables.

For examples of use of this feature, you can refer to the Docker.ubuntu
and Docker.ubuntu.arm docker files, or to the snippet in
https://github.com/owlbarn/owl/issues/394#issuecomment-471364916
(which also shows how to use it within esy).

Troubleshooting

A common source of frustration when installing owl is the possible appearence of linking errors (see for example https://github.com/owlbarn/owl/issues/450).
This usually happens when installing owl on ubuntu (where it depends on how openblas is complied and packaged), but could happen in other distributions (see for example https://discuss.ocaml.org/t/owl-undefined-symbols-after-standard-installation/4186/13).
The only way we could solve those issues is to recompile openblas and install it manually. You can see how we do it by looking at the Docker files in the repository: https://github.com/owlbarn/owl/blob/master/docker/Dockerfile.ubuntu

Statistics

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
OCaml                          357          31341          17275         130905
C                              140           5783           9874          69686
C/C++ Header                    91           4897           2784          36291
make                             2              6              5             34
Markdown                         1              6              0             16
-------------------------------------------------------------------------------
SUM:                           591          42033          29938         236932
-------------------------------------------------------------------------------

主要指标

概览
名称与所有者owlbarn/owl
主编程语言OCaml
编程语言Makefile (语言数: 6)
平台Docker, Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2016-06-20 20:47:45
推送于2025-04-25 14:30:45
最后一次提交
发布数36
最新版本名称1.2 (发布于 2024-12-24 16:55:09)
第一版名称0.1.0 (发布于 2016-11-08 14:31:28)
用户参与
星数1.3k
关注者数45
派生数126
提交数4.5k
已启用问题?
问题数301
打开的问题数41
拉请求数344
打开的拉请求数2
关闭的拉请求数31
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?