Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
3a76ec81
Commit
3a76ec81
authored
Feb 11, 2017
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add OpenMP functions to documentation
parent
be8922ea
Pipeline
#261
passed with stage
in 181 minutes and 2 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
5 deletions
+38
-5
doc/graph_tool.rst
doc/graph_tool.rst
+30
-2
src/graph_tool/__init__.py
src/graph_tool/__init__.py
+8
-3
No files found.
doc/graph_tool.rst
View file @
3a76ec81
...
...
@@ -2,6 +2,10 @@
:no-members:
:no-undoc-members:
.. container:: sec_title
Basic classes
.. autoclass:: Graph
:no-members:
:no-undoc-members:
...
...
@@ -189,7 +193,6 @@
.. automethod:: save
.. autoclass:: GraphView
:show-inheritance:
.. autoclass:: Vertex
...
...
@@ -199,8 +202,18 @@
:show-inheritance:
:no-members:
:members: prop_map
.. container:: sec_title
I/O functions
.. autofunction:: load_graph
.. autofunction:: load_graph_from_csv
.. container:: sec_title
Property map operations
.. autofunction:: group_vector_property
.. autofunction:: ungroup_vector_property
.. autofunction:: map_property_values
...
...
@@ -209,8 +222,23 @@
.. autofunction:: incident_edges_op
.. autofunction:: perfect_prop_hash
.. autofunction:: value_types
.. autofunction:: show_config
.. container:: sec_title
OpenMP control
.. autofunction:: openmp_enabled
.. autofunction:: openmp_get_num_threads
.. autofunction:: openmp_set_num_threads
.. autofunction:: openmp_get_schedule
.. autofunction:: openmp_set_schedule
.. container:: sec_title
Misc
.. autofunction:: show_config
Available subpackages
=====================
...
...
src/graph_tool/__init__.py
View file @
3a76ec81
...
...
@@ -44,6 +44,11 @@ Summary
incident_edges_op
perfect_prop_hash
value_types
openmp_enabled
openmp_get_num_threads
openmp_set_num_threads
openmp_get_schedule
openmp_set_schedule
show_config
...
...
@@ -3292,7 +3297,7 @@ def _get_rng():
# OpenMP Setup
def
openmp_enabled
():
"""Return `
True
` if OpenMP was enabled during compilation."""
"""Return `
`True`
` if OpenMP was enabled during compilation."""
return
libcore
.
openmp_enabled
()
def
openmp_get_num_threads
():
...
...
@@ -3305,12 +3310,12 @@ def openmp_set_num_threads(n):
def
openmp_get_schedule
():
"""Return the runtime OpenMP schedule and chunk size. The schedule can by
any of: `
"static"`, `"dynamic"`, `"guided"`, `"auto"
`."""
any of: `
`"static"``, ``"dynamic"``, ``"guided"``, ``"auto"`
`."""
return
libcore
.
openmp_get_schedule
()
def
openmp_set_schedule
(
schedule
,
chunk
=
0
):
"""Set the runtime OpenMP schedule and chunk size. The schedule can by
any of: `
"static"`, `"dynamic"`, `"guided"`, `"auto"
`."""
any of: `
`"static"``, ``"dynamic"``, ``"guided"``, ``"auto"`
`."""
return
libcore
.
openmp_set_schedule
(
schedule
,
chunk
)
if
openmp_enabled
()
and
os
.
environ
.
get
(
"OMP_SCHEDULE"
)
is
None
:
...
...
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