shwina / pyamgx

GPU accelerated multigrid library for Python
https://pyamgx.readthedocs.io
BSD 3-Clause "New" or "Revised" License
54 stars 24 forks source link

AMGXError: Thrust failure #30

Open ma-sadeghi opened 2 years ago

ma-sadeghi commented 2 years ago

I tried to run the "Demo" in the documentation, but here's the error I'm getting:

AMGX version 2.2.0.132-opensource
Built on Dec 17 2021, 10:01:48
Compiled with CUDA Runtime 11.4, using CUDA driver 11.4
Error initializing amgx core: Reader 'MatrixMarket' is already registered
---------------------------------------------------------------------------
AMGXError                                 Traceback (most recent call last)
<ipython-input-6-b8458b63a257> in <module>
      5 import pyamgx
      6 
----> 7 pyamgx.initialize()
      8 
      9 # Initialize config and resources:

~/Code/pyamgx/pyamgx/pyamgx.pyx in pyamgx.initialize()
     18     Initialize AMGX.
     19     """
---> 20     check_error(AMGX_initialize())
     21     check_error(AMGX_initialize_plugins())
     22 

~/Code/pyamgx/pyamgx/Errors.pyx in pyamgx.check_error()
     60     """
     61     if err_code is not RC.OK:
---> 62         raise AMGXError(get_error_string(err_code))

AMGXError: Error initializing amgx core.

Would really appreciate it if you could shed some light.

shwina commented 2 years ago

Thanks for the bug report! I've unfortunately not been able to give this project the attention it needs lately. I'll try to reproduce this on my end and get back to you early next week.