DIYer22 / boxx

Tool-box for efficient build and debug in Python. Especially for Scientific Computing and Computer Vision.
492 stars 39 forks source link

Some Compatibility Issues Between Boxx and Torch #17

Closed XiaoyuZHK closed 12 months ago

XiaoyuZHK commented 1 year ago

Hello ! i accidentally found a special bug(maybe) about Boxx and Torch, which make me confused.

when i just use import :

import torch   
from boxx import * 

it comes

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

but
when i just use import as this order:

from boxx import *
import torch

no problem !
so, i find the libiomp5md.dll and rename it , but i got more iuuses :< . thus, i cancel rename and change back to order 2 . when you have free time, can you have a look about it ?

if you can't reproduce it, please contact me ~
PS. Thanks for your contribution ! boxx helps me a lot ! :>

DIYer22 commented 12 months ago

It's an honor to help you with boxx.

I'm very sorry that the imperfections of boxx have caused you trouble. I'm more than happy to help you resolve the issue.

Since I can't reproduce the bug, I'll contact you privately. Lastly, thank you for your feedback :)