Skip to content

Commit

Permalink
Merge pull request #16 from martinschwinzerl/kparasch_master
Browse files Browse the repository at this point in the history
python/sixtracklib: fixes access to OpenCL related C99 symbols if Ope…
  • Loading branch information
kparasch authored Feb 18, 2020
2 parents 9c0a702 + cd04c6b commit 48f0968
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions python/sixtracklib/trackjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
st_OutputBuffer_required_for_tracking,
st_OutputBuffer_requires_output_buffer,
st_OutputBuffer_calculate_output_buffer_params,
st_OpenCL_get_available_nodes_required_str_capacity,
st_OpenCL_get_all_nodes_required_str_capacity,
st_OpenCL_get_available_nodes_as_string,
st_OpenCL_get_all_nodes_as_string,
st_TrackJob_get_type_str,
st_TrackJobNew_track_elem_by_elem,
st_TrackJobNew_track_line,
Expand Down Expand Up @@ -142,6 +138,14 @@
st_TrackJobNew_uses_arguments,
)

if stconf.SIXTRACKLIB_MODULES.get("opencl", False):
from .stcommon import (
st_OpenCL_get_available_nodes_required_str_capacity,
st_OpenCL_get_all_nodes_required_str_capacity,
st_OpenCL_get_available_nodes_as_string,
st_OpenCL_get_all_nodes_as_string,
)


class TrackJobBaseNew(object):
def __init__(self, ptr_track_job=None, owns_ptr=True):
Expand Down

0 comments on commit 48f0968

Please sign in to comment.