Hi,
I’m trying to run the example on the quickstart tutorial but run into an error, below. If I set the sample.njobs parameter to 1 (i.e., trace = pm.sample(1000, tune=500,njobs=1)) this error does not occur. The temporary file lists a problem with the g++ command:
with pm.Model() as model:
mu = pm.Normal('mu', mu=0, sd=1)
obs = pm.Normal('obs', mu=mu, sd=1, observed=np.random.randn(100))
trace = pm.sample(1000, tune=500)
print(len(trace))
#output
C:\Miniconda3\envs\py35_64\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
WARNING (theano.gof.compilelock): Overriding existing lock by dead process '6068' (I am process '4268')
Auto-assigning NUTS sampler...
Initializing NUTS using jitter+adapt_diag...
C:\Miniconda3\envs\py35_64\lib\site-packages\pymc3\model.py:384: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
if not np.issubdtype(var.dtype, float):
Multiprocess sampling (3 chains in 3 jobs)
NUTS: [mu]
C:\Miniconda3\envs\py35_64\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
C:\Miniconda3\envs\py35_64\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
C:\Miniconda3\envs\py35_64\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
0%| | 0/1500 [00:00<?, ?it/s]
You can find the C code in this temporary file: C:\Users\daniel\AppData\Local\Temp\theano_compilation_error_q1z142e3
forrtl: error (200): program aborting due to control-C event
Image PC Routine Line Source
libifcoremd.dll 00007FFB32AA94C4 Unknown Unknown Unknown
KERNELBASE.dll 00007FFB62687EDD Unknown Unknown Unknown
KERNEL32.DLL 00007FFB63791FE4 Unknown Unknown Unknown
ntdll.dll 00007FFB660BEFC1 Unknown Unknown Unknown
forrtl: error (200): program aborting due to control-C event
Image PC Routine Line Source
libifcoremd.dll 00007FFB32AA94C4 Unknown Unknown Unknown
KERNELBASE.dll 00007FFB62687EDD Unknown Unknown Unknown
KERNEL32.DLL 00007FFB63791FE4 Unknown Unknown Unknown
ntdll.dll 00007FFB660BEFC1 Unknown Unknown Unknown
forrtl: error (200): program aborting due to control-C event
Image PC Routine Line Source
libifcoremd.dll 00007FFB32AA94C4 Unknown Unknown Unknown
KERNELBASE.dll 00007FFB62687EDD Unknown Unknown Unknown
KERNEL32.DLL 00007FFB63791FE4 Unknown Unknown Unknown
ntdll.dll 00007FFB660BEFC1 Unknown Unknown Unknown
forrtl: error (200): program aborting due to control-C event
Image PC Routine Line Source
libifcoremd.dll 00007FFB32AA94C4 Unknown Unknown Unknown
KERNELBASE.dll 00007FFB62687EDD Unknown Unknown Unknown
KERNEL32.DLL 00007FFB63791FE4 Unknown Unknown Unknown
ntdll.dll 00007FFB660BEFC1 Unknown Unknown Unknown
Problem occurred during compilation with the command line below:
"C:\Miniconda3\envs\py35_64\Library\mingw-w64\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -march=broadwell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=9216 -mtune=generic -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"C:\Miniconda3\envs\py35_64\lib\site-packages\numpy\core\include" -I"C:\Miniconda3\envs\py35_64\include" -I"C:\Miniconda3\envs\py35_64\lib\site-packages\theano\gof\c_code" -L"C:\Miniconda3\envs\py35_64\libs" -L"C:\Miniconda3\envs\py35_64" -o "C:\Users\daniel\AppData\Local\Theano\compiledir_Windows-10-10.0.16299-SP0-Intel64_Family_6_Model_158_Stepping_10_GenuineIntel-3.5.5-64\tmprxnfwonr\mbf603e414396181d78ebdc7b7f3292b9a15629083c2e0aa4d31d71596ce9c1a4.pyd" "C:\Users\daniel\AppData\Local\Theano\compiledir_Windows-10-10.0.16299-SP0-Intel64_Family_6_Model_158_Stepping_10_GenuineIntel-3.5.5-64\tmprxnfwonr\mod.cpp" -lpython35
Any ideas?
Thanks