Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IPDSnelting
spec.py
Commits
8b8a1a1d
Commit
8b8a1a1d
authored
Mar 17, 2014
by
Matthias Braun
Browse files
set machine_name in generated config
parent
47c2b315
Changes
1
Show whitespace changes
Inline
Side-by-side
spec.py
View file @
8b8a1a1d
...
...
@@ -4,6 +4,7 @@ import platform
import
optparse
# TODO argparse from python 2.7 on
import
subprocess
import
resource
import
socket
from
datetime
import
datetime
SCRIPT_VERSION
=
"0.1"
...
...
@@ -379,6 +380,7 @@ def generate_spec_config(options, progs):
contents
.
append
(
"sw_compiler2 = %s"
%
get_compiler_version
(
options
.
cpp_compiler
))
contents
.
append
(
"sw_compiler3 = %s"
%
get_compiler_version
(
options
.
fortran_compiler
))
contents
.
append
(
"sw_file = %s"
%
path_to_filesystem
(
"."
))
contents
.
append
(
"machine_name = %s"
%
socket
.
getfqdn
())
assert
int
(
BITSIZE
),
"bitsize is "
+
BITSIZE
contents
.
append
(
"sw_base_ptrsize = %d-bit"
%
BITSIZE
)
contents
.
append
(
"sw_peak_ptrsize = %d-bit"
%
BITSIZE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment