Running Docker image with Matlab on a Mac
8 次查看(过去 30 天)
显示 更早的评论
Hi,
We have been trying to dockerize some of our Matlab workflows, which has worked perfectly fine. However, we are running into problems when we try to run the same docker image on a Mac computer. Upon launching matlab, we get the following error:
% root@0488926e7766:/workdir# matlab
% MATLAB is selecting SOFTWARE OPENGL rendering.
% Fatal Internal Error: std::exception: uint64_t foundation::core::system::linux::x86_64::getMaximumProcessorFrequencyImpl(): Numerical result out of range
Poking around the output of lspcu, presumably the problem is related to the CPU MHz value, which is reported as being 0.000:
root@d4b5480eab78:/workdir# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 61
Model name: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
Stepping: 4
CPU MHz: 0.000
BogoMIPS: 6979.58
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht pbe syscall nx pdpe1gb lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq dtes64 ds_cpl ssse3 sdbg fma cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch pti fsgsbase bmi1 avx2 bmi2 erms xsaveopt arat
The problem has been replicated on systems running High Sierra and Mojave.
Is this a known issue and/or is there a workaround?
Thanks!
5 个评论
回答(1 个)
Ruben Krueger
2023-12-1
This problem resolved itself by compiling my Matlab code with a newer version of Matlab (2022b instead of 2017b)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!