-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graphicsmagick breaks torch matrix multiplication #21
Comments
can verify that this:
|
It looks like this problem is related to the use of /*
Enable the dynamic adjustment of the number of threads up to the
value set by omp_set_num_threads(), but only if there is more
than one thread available.
*/
if (getenv("OMP_DYNAMIC") == NULL)
omp_set_dynamic(max_threads > 1); (see magick/resource.c - this is part of initializations performed by It has been reverted in the meanwhile:
So the solution is to use a recent GraphicsMagick version, or turn off this mode via |
I just tried to reproduce the problem on my Ubuntu 14.04 machine without setting The installed
|
I reproduced the problem you reported on Ubuntu 14.04 with this exact version:
It corresponds to v1.3.18:
And it was compiled with OpenMP support:
On this machine I verified that turning off the |
Sounds strange first but I have this phenomena on three different Ubuntu 14.04.3 LTS machines and it is perfectly reproductible on my side.
As soon as I load the graphicsmagick module torch matrix multiplications of larger tensors end in an endlessloop with 100% CPU:
Smaller tensor-multiplications (e.g. 10x10) interestingly even work after the require 'graphicsmagick' statement.
Could somebody please check whether this effect only occurs on Ubuntu machines?
The text was updated successfully, but these errors were encountered: