Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LSMTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
LSMTool
Commits
76bc6d94
Commit
76bc6d94
authored
Nov 25, 2020
by
David Rafferty
Browse files
Options
Downloads
Patches
Plain Diff
Disable OpenMP support on Darwin
parent
f3ce3893
No related branches found
No related tags found
1 merge request
!18
Add c++ version of mean shift algorithm
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+5
-1
5 additions, 1 deletion
setup.py
with
5 additions
and
1 deletion
setup.py
+
5
−
1
View file @
76bc6d94
...
@@ -60,9 +60,13 @@ class LSMToolDistribution(Distribution):
...
@@ -60,9 +60,13 @@ class LSMToolDistribution(Distribution):
class
BuildExt
(
build_ext
):
class
BuildExt
(
build_ext
):
def
build_extensions
(
self
):
def
build_extensions
(
self
):
opts
=
[
'
-fopenmp
'
,
'
-std=c++11
'
]
opts
=
[
'
-std=c++11
'
]
if
sys
.
platform
==
'
darwin
'
:
if
sys
.
platform
==
'
darwin
'
:
opts
+=
[
'
-stdlib=libc++
'
]
opts
+=
[
'
-stdlib=libc++
'
]
else
:
# Enable OpenMP support only on non-Darwin platforms, as clang
# does not support it without some work
opts
+=
[
'
-fopenmp
'
]
for
ext
in
self
.
extensions
:
for
ext
in
self
.
extensions
:
ext
.
extra_compile_args
=
opts
ext
.
extra_compile_args
=
opts
build_ext
.
build_extensions
(
self
)
build_ext
.
build_extensions
(
self
)
...
...
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