I had to modify the print code a bit (different python version?) to -
- in _add_transpose() - print ('device_params.max_work_item_sizes=',device_params.max_work_item_sizes)
- in vsize.py:
print(' at _init_ of vsize.py: device_params.max_work_group_size, device_params.max_work_item_sizes, virtual_global_size, virtual_local_size and max_local_size')
print (device_params.max_work_group_size, device_params.max_work_item_sizes, virtual_global_size, virtual_local_size and max_local_size)
and
print ('virtual_local_size and max_work_group_size=',virtual_local_size, max_work_group_size)
Results:
at _init_ of vsize.py: device_params.max_work_group_size, device_params.max_work_item_sizes, virtual_global_size, virtual_local_size and max_local_size
1024 [1024, 1024, 64] 80640 1024
32 1024
device_params.max_work_item_sizes= [1024, 1024, 64]
at _init_ of vsize.py: device_params.max_work_group_size, device_params.max_work_item_sizes, virtual_global_size, virtual_local_size and max_local_size
1024 [1024, 1024, 64] (1, 320, 1056) 1024
at _init_ of vsize.py: device_params.max_work_group_size, device_params.max_work_item_sizes, virtual_global_size, virtual_local_size and max_local_size
1024 [1024, 1024, 64] (1, 320, 1056) 256
virtual_local_size and max_work_group_size= (32, 32, 1) 256
Traceback (most recent call last):
File "demo_specgram.py", line 223, in <module>
specgram_reikna = Spectrogram(
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\core\computation.py", line 206, in compile
return self._get_plan(
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\core\computation.py", line 192, in _get_plan
return self._build_plan(plan_factory, thread.device_params, *args)
File "demo_specgram.py", line 202, in _build_plan
plan.computation_call(self._transpose, output, temp)
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\core\computation.py", line 500, in computation_call
self._append_plan(computation._get_plan(
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\core\computation.py", line 192, in _get_plan
return self._build_plan(plan_factory, thread.device_params, *args)
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\algorithms\transpose.py", line 174, in _build_plan
self._add_transpose(plan, device_params,
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\algorithms\transpose.py", line 152, in _add_transpose
plan.kernel_call(
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\core\computation.py", line 466, in kernel_call
kernel = self._thread.compile_static(
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\cluda\api.py", line 563, in compile_static
return StaticKernel(self, template_src, name, global_size,
File "C:\Users\engel\anaconda3\lib\site-packages\reikna\cluda\api.py", line 777, in __init__
When you see "fft1a.py" - this is just the filename I saved the demo program (
demo_specgram.py
) with first; now I named it demo_specgram.py to avoid confusion.
In case this is related to Python version, I have the following:
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
-regards - Bill