Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
425612a5
Commit
425612a5
authored
Jul 23, 2018
by
Lorenz Huedepohl
Browse files
Add support for CUDA 9.2
parent
b9a66e31
Pipeline
#67051
failed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
425612a5
...
...
@@ -46,6 +46,8 @@ def valid_cuda(cuda, compiler):
return
compiler
==
"gcc_5"
if
cuda
==
"cuda_9_1"
:
return
compiler
==
"gcc_6_3_0"
if
cuda
==
"cuda_9_2"
:
return
compiler
==
"gcc_7"
return
False
...
...
@@ -189,10 +191,10 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False):
def
actual_compilers
():
for
compiler
in
compilers
:
if
compiler
==
"intel"
:
for
intel_compiler
in
filter
(
lambda
cc
:
cc
.
startswith
(
"intel"
),
compilers
):
for
intel_compiler
in
filter
(
lambda
cc
:
cc
.
startswith
(
"intel"
),
all_
compilers
):
yield
intel_compiler
elif
compiler
==
"gcc"
:
for
gcc_compiler
in
filter
(
lambda
cc
:
cc
.
startswith
(
"gcc"
),
compilers
):
for
gcc_compiler
in
filter
(
lambda
cc
:
cc
.
startswith
(
"gcc"
),
all_
compilers
):
yield
gcc_compiler
elif
compiler
==
"default_compiler"
:
for
default_compiler
in
default_compilers
:
...
...
@@ -226,7 +228,7 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False):
if
flag
==
"compilers"
:
for
compiler
in
actual_compilers
():
enable
(
compiler
)
enable
(
compiler
)
if
flag
==
"mpi"
:
for
mpi
,
compiler
in
product
(
actual_mpis
(),
actual_compilers
()):
...
...
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