Skip to content

Commit

Permalink
Check in initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 29, 2022
1 parent cd004e1 commit d2bd904
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xobjects/context_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def __init__(self, omp_num_threads=0):
super().__init__()
self.omp_num_threads = omp_num_threads

if self.omp_num_threads > 1:
raise NotImplementedError("OpenMP parallelization not yet supported!")

def _make_buffer(self, capacity):
return BufferNumpy(capacity=capacity, context=self)

Expand Down

0 comments on commit d2bd904

Please sign in to comment.