8000 config files. · PythonOptimizers/HSL.py@75ce3ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 75ce3ee

Browse files
committed
config files.
1 parent a591f32 commit 75ce3ee

7 files changed

+218
-0
lines changed

config/.gitignore_develop

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
site.cfg
2+
.DS_Store
3+
4+
# Matrices
5+
*.mtx.gz
6+
*.mtx
7+
8+
# C extensions
9+
*.so
10+
11+
# Generated files
12+
*.pyx
13+
*.pxd
14+
*.c
15+
__pycache__/
16+
*.py[cod]
17+
*$py.class
18+
setup.py
19+
20+
21+
# Distribution / packaging
22+
release.sh
23+
.Python
24+
env/
25+
build/
26+
develop-eggs/
27+
dist/
28+
downloads/
29+
eggs/
30+
.eggs/
31+
lib/
32+
lib64/
33+
parts/
34+
sdist/
35+
var/
36+
*.egg-info/
37+
.installed.cfg
38+
*.egg
39+
40+
# PyInstaller
41+
# Usually these files are written by a python script from a template
42+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
43+
*.manifest
44+
*.spec
45+
46+
# Installer logs
47+
pip-log.txt
48+
pip-delete-this-directory.txt
49+
50+
# Unit test / coverage reports
51+
htmlcov/
52+
.tox/
53+
.coverage
54+
.coverage.*
55+
.cache
56+
nosetests.xml
57+
coverage.xml
58+
*,cover
59+
60+
# Translations
61+
*.mo
62+
*.pot
63+
64+
# Django stuff:
65+
*.log
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
File renamed without changes.

requirements.txt renamed to config/requirements_develop.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
numpy>=1.9.2
2+
Cython
23
cygenja
34
sphinx-bootstrap-theme>=0.4.5
45
fortranformat

config/requirements_master.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
numpy>=1.9.2
2+
sphinx-bootstrap-theme>=0.4.5
3+
fortranformat
4+
pytest

config/site.template_develop.cfg

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# This file provides configuration information about non-Python dependencies for
2+
# HSL.py.
3+
4+
# The format of the file is that of the standard library's ConfigParser module.
5+
#
6+
# http://www.python.org/doc/current/lib/module-ConfigParser.html
7+
#
8+
# Each section defines settings that apply to one particular dependency. Some of
9+
# the settings are general and apply to nearly any section and are defined here.
10+
# Settings specific to a particular section will be defined near their section.
11+
#
12+
# libraries
13+
# Comma-separated list of library names to add to compile the extension
14+
# with. Note that these should be just the names, not the filenames. For
15+
# example, the file "libfoo.so" would become simply "foo".
16+
# libraries = lapack,f77blas,cblas,atlas
17+
#
18+
# library_dirs
19+
# List of directories to add to the library search path when compiling
20+
# extensions with this dependency. Use the character given by os.pathsep
21+
# to separate the items in the list. On UN*X-type systems (Linux, FreeBSD,
22+
# OS X):
23+
# library_dirs = /usr/lib:/usr/local/lib
24+
# On Windows:
25+
# library_dirs = c:\mingw\lib,c:\atlas\lib
26+
#
27+
# include_dirs
28+
# List of directories to add to the header file earch path.
29+
# include_dirs = /usr/include:/usr/local/include
30+
#
31+
# src_dirs
32+
# List of directories that contain extracted source code for the
33+
# dependency. For some dependencies, numpy.distutils will be able to build
34+
# them from source if binaries cannot be found. The FORTRAN BLAS and
35+
# LAPACK libraries are one example. However, most dependencies are more
36+
# complicated and require actual installation that you need to do
37+
# yourself.
38+
# src_dirs = /home/rkern/src/BLAS_SRC:/home/rkern/src/LAPACK_SRC
39+
#
40+
# search_static_first
41+
# Boolean (one of (0, false, no, off) for False or (1, true, yes, on) for
42+
# True) to tell numpy.distutils to prefer static libraries (.a) over
43+
# shared libraries (.so). It is turned off by default.
44+
# search_static_first = false
45+
46+
# Defaults
47+
# ========
48+
# The settings given here will apply to all other sections if not overridden.
49+
# This is a good place to add general library and include directories like
50+
# /usr/local/{lib,include}
51+
#
52+
#[DEFAULT]
53+
#library_dirs = /home/MGI/syarre/lib
54+
#include_dirs = /usr/local/include
55+
56+
# Optimized BLAS and LAPACK
57+
# -------------------------
58+
# Use the blas_opt and lapack_opt sections to give any settings that are
59+
# required to link against your chosen BLAS and LAPACK, including the regular
60+
# FORTRAN reference BLAS and also ATLAS. Some other sections still exist for
61+
# linking against certain optimized libraries (e.g. [atlas], [lapack_atlas]),
62+
# however, they are now deprecated and should not be used.
63+
#
64+
# These are typical configurations for ATLAS (assuming that the library and
65+
# include directories have already been set in [DEFAULT]; the include directory
66+
# is important for the BLAS C interface):
67+
#
68+
#[blas_opt]
69+
#libraries = f77blas, cblas, atlas
70+
#
71+
#[lapack_opt]
72+
#libraries = lapack, f77blas, cblas, atlas
73+
#
74+
# If your ATLAS was compiled with pthreads, the names of the libraries might be
75+
# different:
76+
#
77+
#[blas_opt]
78+
#libraries = ptf77blas, ptcblas, atlas
79+
#
80+
#[lapack_opt]
81+
#libraries = lapack, ptf77blas, ptcblas, atlas
82+
83+
# HSL
84+
# ---
85+
# 1. You will need the following files from the HSL Archive
86+< 10000 div class="diff-text-inner"># (see http://www.hsl.rl.ac.uk/archive/hslarchive/hslarchive.html for
87+
# license terms and for obtaining the software):
88+
# fd05ad.f ma27ad.f
89+
# These two files must be placed in the directory specified in hsl_dir
90+
# below.
91+
#
92+
# 2. You will need the following packages from the HSL:
93+
# (see http://hsl.rl.ac.uk/hsl2007/hsl20074researchers.html for license
94+
# terms and for obtaining the software):
95+
# ma57d mc29d hsl_zd11d.f90
96+
# The directory specified in hsl_dir below should contain a subdirectory
97+
# named ma57d and one named mc29d. These should not be altered. The file
98+
# hsl_zd11d.f90 should be placed in hsl_dir.
99+
#
100+
[CODE_GENERATION]
101+
# log file name **without** extension (by default, we use '.log')
102+
log_name = generator
103+
# DEBUG/INFO/WARNING/ERROR/CRITICAL
104+
log_level = DEBUG
105+
console_log_level = DEBUG
106+
file_log_level = DEBUG
107+
# 32bits/64bits
108+
# if left blank, we use INT64_t on 64 bits platforms and INT32_t on 32 bits platforms
109+
DEFAULT_INDEX_TYPE =
110+
# Do you want to generate the .c files from Cython?
111+
use_cython = true
112+
# Use debug symbols?
113+
use_debug_symbols = false
114+
115+
# Defaults
116+
# ========
117+
# The settings given here will apply to all other sections if not overridden.
118+
# This is a good place to add general library and include directories like
119+
# /usr/local/{lib,include}
120+
#
121+
[DEFAULT]
122+
library_dirs = /usr/local/lib
123+
include_dirs = /usr/local/include
124+
125+
[HSL]
126+
hsl_rootdir = /Users/syarra/work/programs/hsl
127+
128+
# METIS
129+
# -----
130+
# You will need the METIS library and header files.
131+
# The source tree may be downloaded from
132+
# http://glaros.dtc.umn.edu/gkhome/metis/metis/download
133+
# Warning: **only** version **4** is supported by MA57.
134+
[METIS]
135+
metis_dir = /usr/local/opt/metis4/lib
136+
metis_lib = metis
137+
138+
# Optional
139+
# [CYSPARSE]
140+
# cysparse_rootdir = /Users/syarra/work/VirtualEnvs/nlpy_new/programs/cysparse/
File renamed without changes.

generate_code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def make_parser():
3636

3737
parser.add_argument("-c", "--clean", help="Clean action files",
3838
action='store_true', required=False)
39+
parser.add_argument("-r", "--recursice", help="Run recursively",
40+
action='store_true', required=False)
3941
parser.add_argument("-d", "--dry_run", help="Dry run: no action is taken",
4042
action='store_true', required=False)
4143
parser.add_argument("-f", "--force", help="Force generation no matter what",

0 commit comments

Comments
 (0)
0