I'm getting the error in numba while I'm trying to parallelize a loop that says
Use of a tuple (my_list) of length 200 in a parallel region exceeds
the maximum supported tuple size. Since Generalized Universal
Functions back parallel regions and those do not support tuples,
tuples passed to parallel regions are unpacked if their size is below
a certain threshold, currently configured to be 100. This threshold
can be modified using the Numba environment variable
NUMBA_PARFOR_MAX_TUPLE_SIZE.
From these instructions I thought I could make a file called .numba_config.yaml
with this content
NUMBA_PARFOR_MAX_TUPLE_SIZE: 500
The file is stored in the same directory as main.py
and I run the program with python3 main.py
How can I adjust the max permitted tuple size?
A solution appears to be
import os
os.environ["NUMBA_PARFOR_MAX_TUPLE_SIZE"] = "500"