Error 134 Cannot Set Thread Affinity Mask
Sign in Pricing Blog Support Search GitHub This repository Watch 542 Star 7,182 Fork 2,955 pydata/pandas Code Issues 1,746 Pull requests 97 Projects 0 Wiki Pulse Graphs New issue OMP Error on Series experssions #6720 Closed davidljung opened this Issue Mar 27, 2014 · 12 comments Projects None yet Labels Numeric Milestone No milestone Assignees No one assigned 3 participants davidljung commented Mar 27, 2014 from SO: http://stackoverflow.com/questions/23537265/inconsistent-system-error-with-pandas-0-13-series-operation/23542455#23542455 When performing some expressions involving Series returned from DataFrame column indexing (Pandas 0.13.1 with Numpy 1.8.0 in Windows 7), a new pythonw.exe console window appears (empty) but the initiating GUI indicates the following error text was returned: OMP: Error #134: Cannot set thread affinity mask. OMP: System error #87: The parameter is incorrect. It occurs with expressions such as: df = df.loc[(df['timediff'] > -20) & (df['timediff'] < 20),:] and df['GP'] = (df['Price'] - df['Cost'] - (df['Discount'] / df['Qty'])) * df['Qty'] (this is on moderately small DataFrames < 10 million rows) As a workaround, disabling numexpr operations seems to avoid it: pandas.computation.expressions.set_use_numexpr(False) as suggested in issue #3434. Possibly related (at least by error text): http://software.intel.com/en-us/forums/topic/279406 jreback commented Mar 27, 2014 pls show the actual frame; this is a timedelta issue I am pretty sure davidljung commented Mar 27, 2014 The columns in question are all float64. It didn't make any difference if the comparisons to the float64 timediff column used python float literals rather than ints either. jreback commented Mar 27, 2014 @davidljung with a reproducible ex
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; https://github.com/pydata/pandas/issues/6720 it only takes a minute: Sign up pandas 0.13 system error: cannot set thread affinity mask up vote 0 down vote favorite this is my first stack overflow question so please pardon any ignorance about the forum on my part. I am using python 2.7.6 64 bit and pandas 0.13.1-1 from Enthought Canopy 1.3.0.1715 on a win 7 machine. I http://stackoverflow.com/questions/23537265/pandas-0-13-system-error-cannot-set-thread-affinity-mask have numpy 1.8.0-1 and numexpr 2.2.2-2. I have inconsistent error behviour running the following on a pandas series of 10,000 numpy.float64 loaded from hdf: import python s = pandas.read_hdf(r'C:\test\test.h5', 'test') s/2. This gives me inconsistent behaviour, it sometimes works and sometimes throws: OMP: Error #134: Cannot set thread affinity mask. OMP: System error #87: The parameter is incorrect. I have replicated this error on other machines, and the test case is derived from a unit test failure (with the above error) which was replicted on several machines and from a server. This has come up in an upgrade from pandas 0.12 to pandas 0.13. The following consistantly runs with no error: import python s = pandas.read_hdf(r'C:\test\test.h5', 'test') s.apply(lambda x: x/2.) and, import python s = pandas.read_hdf(r'C:\test\test.h5', 'test') pandas.computation.expressions.set_use_numexpr(False) s/2. Thanks for the help. python-2.7 numpy pandas canopy numexpr share|improve this question edited May 13 '14 at 8:13 asked May 8 '14 at 9:01 user 33 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted This is a very similar problem
mahantesh Hi, We are using some functions from UIC_transcoder for decoding jpeg http://boardreader.com/thread/Error_Cannot_set_thread_affinity_mask_imztX27pm.html frames and converting these frames to RBG frames. Randomly we are getting the below mentioned errors. Also we use some of the functions from IPP to resize the frame. OMP : Error # 134 Cannot set thread affinity mask. OMP : System error #87 : The parameter is incorrect. Can someone explain why error 134 these errors occur and ... Top contributing authors: Name Posts Sergey Kostrov 3 user's latest post: Error : Cannot set thread... Published (2012-02-27 17:46:00) Quoting Sergey Kostrov ...I'll try to reproduce the problem on my system... I've spent some time today and I couldn't reproduce it in an OpenMP test application. Sergey error 134 cannot Khlystov (Intel) 1 user's latest post: Error : Cannot set thread... Published (2012-02-26 06:41:00) Hi! Try to play with KMP_AFFINITY environment variable ( http://software.intel.com/sites/products/documentation/studio/composer/en-us/2011/compiler_c/optaps/common/optaps_openmp_thread_affinity.htm ). According to description you can even disable affinity control. UIC itself does nothing with thread affinity. Regards, Sergey Ying H (Intel) 1 user's latest post: Error : Cannot set thread... Published (2012-03-01 19:47:00) Hi Mahantest, Could you please provide us a test sample to reproduce the problem? (for example, including the parallel (multi-thread) structure add ippresize call, remove the UIC part?). I check there was same reports before in forum: http://secure-software.intel.com/en-us/forums/showthread.php?t=81551 . and http://software.intel.com/en-us/forums/showthread.php?t=76294 . I guess there is mix thread model conflict (i.e C# thread and OpenMP... Vladimir Polin (Intel) 1 user's latest post: Error : Cannot set thread... Published (2012-03-06 03:50:00) Hello, The fix should be available in Composer XE 2011 update 9. Hope this helps, --Vladimir mahantesh 1 user's latest post: Error : Cannot set thread... Published (2012-02-24 02:11:00) Hi, We are u