Skip to content

Commit

Permalink
opencl: try bring back profile
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaneed authored Aug 20, 2024
1 parent b26f802 commit a8dd3df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compyle/opencl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def set_context(ctx):
def get_queue():
global _queue
if _queue is None:
properties = None
kwargs = dict()
if get_config().profile:
properties = cl.command_queue_properties.PROFILING_ENABLE
_queue = cl.CommandQueue(get_context())#, properties=properties)
kwargs['properties'] = cl.command_queue_properties.PROFILING_ENABLE
_queue = cl.CommandQueue(get_context(), **kwargs)
return _queue


Expand Down

0 comments on commit a8dd3df

Please sign in to comment.