Replies: 12 comments 4 replies
-
@maresb asked me to post the aesara config here in hopes that it will provide insight. Let me know if any other information will be helpful.
Click for output of:
floatX ({'float16', 'float32', 'float64'})
Doc: Default floating-point precision for python casts.
Note: float16 support is experimental, use at your own risk. warn_float64 ({'pdb', 'raise', 'ignore', 'warn'}) pickle_test_value (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173BDCE8250>>) cast_policy ({'numpy+floatX', 'custom'}) deterministic ({'default', 'more'}) device (cpu) force_device (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C141A8C0>>) conv__assert_shape (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C141AE60>>) print_global_stats (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C141AEF0>>) assert_no_cpu_op ({'pdb', 'raise', 'ignore', 'warn'}) unpickle_function (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5060>>) <aesara.configparser.ConfigParam object at 0x00000173C15D4E80> cxx (<class 'str'>) linker ({'cvm_nogc', 'vm', 'py', 'vm_nogc', 'c', 'c|py', 'c|py_nogc', 'cvm'}) allow_gc (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5210>>) optimizer ({'fast_compile', 'merge', 'fast_run', 'o2', 'o3', 'o4', 'None', 'unsafe', 'o1'}) optimizer_verbose (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D50F0>>) on_opt_error ({'pdb', 'raise', 'ignore', 'warn'}) nocleanup (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5000>>) on_unused_input ({'raise', 'ignore', 'warn'}) gcc__cxxflags (<class 'str'>) cmodule__warn_no_version (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D50C0>>) cmodule__remove_gxx_opt (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5150>>) cmodule__compilation_warning (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5270>>) cmodule__preload_cache (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5240>>) cmodule__age_thresh_use (<class 'int'>) cmodule__debug (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5330>>) compile__wait (<class 'int'>) compile__timeout (<class 'int'>) ctc__root (<class 'str'>) tensor__cmp_sloppy (<class 'int'>) tensor__local_elemwise_fusion (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D54E0>>) lib__amblibm (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D55A0>>) tensor__insert_inplace_optimizer_validate_nb (<class 'int'>) traceback__limit (<class 'int'>) traceback__compile_limit (<class 'int'>) experimental__local_alloc_elemwise (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5720>>) experimental__local_alloc_elemwise_assert (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5750>>) warn__ignore_bug_before ({'0.8.1', '0.8', '0.6', '1.0.4', '0.9', 'None', '1.0.5', '1.0.3', '0.10', '0.3', '0.4', '1.0.2', 'all', '0.7', '1.0', '1.0.1', '0.4.1', '0.8.2', '0.5'}) exception_verbosity ({'low', 'high'}) print_test_value (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D58A0>>) compute_test_value ({'off', 'raise', 'pdb', 'ignore', 'warn'}) compute_test_value_opt ({'off', 'raise', 'pdb', 'ignore', 'warn'}) check_input (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5900>>) NanGuardMode__nan_is_error (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5930>>) NanGuardMode__inf_is_error (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5990>>) NanGuardMode__big_is_error (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5A20>>) NanGuardMode__action ({'pdb', 'raise', 'warn'}) DebugMode__patience (<class 'int'>) DebugMode__check_c (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5AB0>>) DebugMode__check_py (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5B40>>) DebugMode__check_finite (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5B10>>) DebugMode__check_strides (<class 'int'>) DebugMode__warn_input_not_reused (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5BA0>>) DebugMode__check_preallocated_output (<class 'str'>) DebugMode__check_preallocated_output_ndim (<class 'int'>) profiling__time_thunks (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5C30>>) profiling__n_apply (<class 'int'>) profiling__n_ops (<class 'int'>) profiling__output_line_width (<class 'int'>) profiling__min_memory_size (<class 'int'>) profiling__min_peak_memory (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5D80>>) profiling__destination (<class 'str'>) profiling__debugprint (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5DE0>>) profiling__ignore_first_call (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5E10>>) on_shape_error ({'raise', 'warn'}) openmp (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D5E70>>) openmp_elemwise_minsize (<class 'int'>) optimizer_excluding (<class 'str'>) optimizer_including (<class 'str'>) optimizer_requiring (<class 'str'>) optdb__position_cutoff (<class 'float'>) optdb__max_use_ratio (<class 'float'>) cycle_detection ({'regular', 'fast'}) check_stack_trace ({'raise', 'warn', 'log', 'off'}) metaopt__verbose (<class 'int'>) metaopt__optimizer_excluding (<class 'str'>) metaopt__optimizer_including (<class 'str'>) profile (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D6140>>) profile_optimizer (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D61A0>>) profile_memory (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D61D0>>) <aesara.configparser.ConfigParam object at 0x00000173C15D6200> unittests__rseed (<class 'str'>) warn__round (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D62C0>>) numba__vectorize_target ({'cuda', 'parallel', 'cpu'}) numba__fastmath (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D63B0>>) numba__cache (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C15D6440>>) compiledir_format (<class 'str'>) <aesara.configparser.ConfigParam object at 0x00000173C15D6500> <aesara.configparser.ConfigParam object at 0x00000173C15D6710> blas__ldflags (<class 'str'>) blas__check_openmp (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C1829B10>>) scan__allow_gc (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C3FD42B0>>) scan__allow_output_prealloc (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x00000173C403DC00>>)
|
Beta Was this translation helpful? Give feedback.
-
Thanks @opherdonchin for the extra info! I see that @brandonwillard has added the |
Beta Was this translation helpful? Give feedback.
-
We may also need the commands used to build the (virtual) environment in which this issue occurs from scratch. Also, don't use PyMC in these reproductions. |
Beta Was this translation helpful? Give feedback.
-
Hi @brandonwillard , I don't know enough about I used a minimal environment for testing:
`mamba create --name pymc_env_aesara --channel conda-forge --strict-channel-priority pymc`
|
Beta Was this translation helpful? Give feedback.
-
That's fine, but it means that the PyMC-related work being done in this issue should be done in a PyMC issue or Discussion first (i.e. until the Aesara parts of the issue are understood and reproducible). The basic idea is that readers and/or developers here may know nothing about PyMC, so it's less likely that progress would be made here than elsewhere, and that increases the chances of this becoming a stale issue. |
Beta Was this translation helpful? Give feedback.
-
Agreed. I should have mentioned that I pinged @lucianopaz, and he intends to take a look at this (in particular in relation to #947) when he finds the time. |
Beta Was this translation helpful? Give feedback.
-
@opherdonchin, I reproduced your pymc model to see if I could dive into the issue further, but the model works for me. I noticed that your By any chance, are you attempting to modify the default
If imagine that if you are not setting the |
Beta Was this translation helpful? Give feedback.
-
Hi @lucianopaz ! Thanks for the suggestions. In the related PyMC discourse discussion, you suggested I try adding the line:
And that works! At least, it works in the stripped down environment with the stripped down script I made for this issue. I'll check the full version later but I don't see why there should be a problem. I tried following up on the suggestions here as well. I did not find an Is there a way to keep following this up beyond this point to identify the original problem? I mean, it is fixed for me, but it would be nice to know what went wrong. Opher |
Beta Was this translation helpful? Give feedback.
-
I honestly don’t know how the blas flags could have gotten to the state they were. If you search for mkl in aesara you find that it’s set in a few scripts in the library, so I don’t understand what could have broken them. Maybe @brandonwillard has an idea? |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Here is another issue in pymc that is caused by aesara not seeing the correct default ldflags. Note that the environment lists all the relevant mkl libraries, but the config ends up having |
Beta Was this translation helpful? Give feedback.
-
My Windows VM setup needs some repair, so I'm not able to try this at the moment. Was anyone else able to reproduce these issues locally? |
Beta Was this translation helpful? Give feedback.
-
Description of your problem or feature request
There is a report on Discourse about an issue from a Windows user regarding a linking problem. @lucianopaz believes the issue is related to #947:
Versions and main components
python -c "import aesara; print(aesara.config)"
)Beta Was this translation helpful? Give feedback.
All reactions