Giter Site home page Giter Site logo

nihaoy6 / asl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ampl/asl

0.0 0.0 0.0 1.88 MB

Shell 0.18% C++ 0.15% C 89.46% Fortran 7.48% Assembly 0.11% MATLAB 0.31% Forth 0.01% Logos 0.03% Makefile 0.38% HTML 0.76% CMake 0.76% Batchfile 0.02% Roff 0.01% WebAssembly 0.35%

asl's Introduction

asl

This repository contains the up-to-date version of ASL (AMPL Solver Library) as maintained by David Gay. It supports cmake multiplatform builds. There are a few cmake switches that define which optional modules will be built:

  • BUILD_EXAMPLES builds the ASL examples
  • BUILD_F2c build the f2c (Fortran To C) library; implied in case the examples are being compiled
  • BUILD_MT_LIBS builds the asl-mt and asl2-mt libraries, multithreaded, compiled using OpenMP switches

Linux systems

To build the static library under x86 Unix/Linux systems and the examples, simply do the following:

mkdir build
cd build
cmake .. -DBUILD_EXAMPLES=1
make .

This by default builds 64 bits versions of the libraries, to build 32 bits builds, define the variable ARCH when calling cmake:

cmake .. -DARCH=32

Windows systems

To build the library on Windows (this assumes Visual Studio 2019 as a generator); note also that after the third step you'll have a file ASL.sln that can be opened from Visual Studio to continue the build from there.

md build
cd build
cmake .. 
cmake --build .

To build other flavours of the library, replace the cmake .. command with:

  • VS2019 32 bits: cmake .. -A Win32
  • VS2017 64 bits: `cmake .. -G "Visual Studio 15 2017 Win64"
  • VS2017 32 bits: `cmake .. -G "Visual Studio 15 2017"

asl's People

Contributors

4er4er4er avatar fdabrandao avatar glebbelov avatar jamesjer avatar jihadist avatar mapgccv avatar mingodad avatar

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.