Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
6e7a3f68
Commit
6e7a3f68
authored
8 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
add control of compiler during setup
parent
113e512e
No related branches found
No related tags found
2 merge requests
!21
Bugfix/nansampling
,
!3
Bugfix/event manager show html
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
machine_settings_py.py
+1
-0
1 addition, 0 deletions
machine_settings_py.py
setup.py
+4
-2
4 additions, 2 deletions
setup.py
with
5 additions
and
2 deletions
machine_settings_py.py
+
1
−
0
View file @
6e7a3f68
...
...
@@ -37,6 +37,7 @@ import os
hostname
=
os
.
getenv
(
'
HOSTNAME
'
)
compiler
=
'
g++
'
extra_compile_args
=
[
'
-Wall
'
,
'
-O2
'
,
'
-g
'
,
'
-mtune=native
'
,
'
-ffast-math
'
,
'
-std=c++11
'
]
extra_libraries
=
[
'
hdf5
'
]
include_dirs
=
[]
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
4
−
2
View file @
6e7a3f68
...
...
@@ -52,7 +52,7 @@ if not os.path.exists(os.path.join(bfpsfolder, 'host_information.py')):
shutil
.
copyfile
(
'
./machine_settings_py.py
'
,
os
.
path
.
join
(
bfpsfolder
,
'
machine_settings.py
'
))
sys
.
path
.
insert
(
0
,
bfpsfolder
)
# import stuff required for compilation of static library
from
machine_settings
import
include_dirs
,
library_dirs
,
extra_compile_args
,
extra_libraries
from
machine_settings
import
compiler
,
include_dirs
,
library_dirs
,
extra_compile_args
,
extra_libraries
### package versioning
...
...
@@ -147,6 +147,8 @@ def compile_bfps_library():
if
not
os
.
path
.
isdir
(
'
obj
'
):
os
.
makedirs
(
'
obj
'
)
need_to_compile
=
True
if
not
os
.
path
.
isfile
(
'
bfps/libbfps.a
'
):
need_to_compile
=
True
else
:
ofile
=
'
bfps/libbfps.a
'
libtime
=
datetime
.
datetime
.
fromtimestamp
(
os
.
path
.
getctime
(
ofile
))
...
...
@@ -165,7 +167,7 @@ def compile_bfps_library():
(
datetime
.
datetime
.
fromtimestamp
(
os
.
path
.
getctime
(
ofile
))
<
datetime
.
datetime
.
fromtimestamp
(
os
.
path
.
getctime
(
ifile
))))
if
need_to_compile_file
:
command_strings
=
[
'
g++
'
,
'
-c
'
]
command_strings
=
[
compiler
,
'
-c
'
]
command_strings
+=
[
'
bfps/cpp/
'
+
fname
+
'
.cpp
'
]
command_strings
+=
[
'
-o
'
,
'
obj/
'
+
fname
+
'
.o
'
]
command_strings
+=
extra_compile_args
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment