• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

optimizers/homebrew-cutest: Homebrew's CUTEst Tap

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

optimizers/homebrew-cutest

开源软件地址:

https://github.com/optimizers/homebrew-cutest

开源编程语言:

Ruby 100.0%

开源软件介绍:

Homebrew's CUTEst Tap

brew test-bot

For the Impatient

brew tap optimizers/cutest
brew install cutest
brew install mastsif  # If you want the whole SIF collection.
for f in "archdefs" "mastsif" "sifdecode" "cutest"; do \
  echo ". $(brew --prefix $f)/$f.bashrc" >> ~/.bashrc; \
done

It is also possible to build the Matlab interface to CUTEst:

brew install cutest --with-matlab

What's This?

This Homebrew tap allows you to install CUTEst and related tools inside the control of Homebrew. This has advantages and disadvantages.

Advantages

  • One simple command to install each tool: brew install tool
  • Precompiled binaries are available for Linux and macOS
  • No need to tweak your PATH, LD_LIBRARY_PATH, MANPATH and so forth
  • libsifdecode, libcutest and libcutest_single are available directly in /usr/local/lib so linking them in is a simple matter of adding -lsifdecode, -lcutest or -lcutest_single
  • installation of a Matlab-friendly compiler is taken in charge.

Disadvantages

  • Only OSX and Linux are supported
  • Only one architecture of SIFDecode and CUTEst can be built
  • Cannot easily select esoteric compilers

Installing

Brew taps are repositories of Homebrew formulae. In order to use this one, you first need to tap it:

brew tap optimizers/cutest

Now we can install CUTEst and, at your option, the entire SIF collection:

brew install cutest [--with-matlab] [--without-single] [--with-pgi]
brew install mastsif  # If you want the whole SIF collection.
brew install maros_mezaros #If you want the Maros-Mezaros collection
brew install netlib #If you want the NETLIB LP collection

The mastsif, maros_mezaros and netlib formulae only install data files.

The option --without-single will prevent the single precision library from being built. The last thing to do is to add all the requisite environment variables to our ~/.bashrc. Each package provides a mini bashrc that contains the relevant definitions and can be sourced. They can all be sourced in one command:

for f in "archdefs" "mastsif" "sifdecode" "cutest"; do \
  echo ". $(brew --prefix $f)/$f.bashrc" >> ~/.bashrc; \
done

Note: it might be that you have to add the above to your ~/.profile instead of your ~/.bashrc if you are using Yosemite.

If you installed CUTEst with Matlab support, you also need to define an environment variable pointing to your local Matlab installation, e.g.,

export MYMATLAB=/Applications/Matlab/MATLAB_R2012a.app

Testing

You can check that everything works as intended using:

brew test sifdecode
brew test cutest

Updating

Every time the formulae are updated, brew update will let you know. You may then reinstall them using brew reinstall sifdecode, etc.

Development Builds

If you so desire, you may build directly from the latest sources in the Subversion repositories. All that is required is to pass the --HEAD option to each build command, e.g., brew install sifdecode --HEAD.

Partial Installs

You can install only archdefs, only sifdecode or only mastsif using the command

brew install <formula>

Because archdefs is a prerequisite of sifdecode, running brew install sifdecode will also install archdefs.

Enjoy!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap