"cpu MHz" not found when running a Linux container on an ARM MAC
https://github.com/PixarAnimationStudios/OpenUSD/blob/10b62439e9242a55101cf8b200f2c7e02420e1b0/pxr/base/arch/timing.cpp#L150
We wanted to bring the following issue to your attention. We are building a Linux container with USD, and testing it on a MAC ARM host, and we are getting the following error:
ArchError: Could not find 'cpu MHz' in /proc/cpuinfo
Function: Arch_ComputeNanosecondsPerTick
File: /opt/jenkins/workspace/some_release/build-Release/_deps/usd-src/pxr/base/arch/timing.cpp
Line: 149
qemu: uncaught target signal 6 (Aborted) - core dumped
According to a quick search, other people have run into this. The "CPU MHz: " line is definitely missing from /proc/cpuinfo in the container in this case. Since that file can not be edited, we don't have a workaround right now.
Thank you!
Filed as internal issue #USD-8856
Any updates?
This seems like it might be addressed by https://github.com/PixarAnimationStudios/OpenUSD/commit/660d111cfa9fe946cef7c45a4a07e0a0ae39947a
@ysinh Is this still an issue?
Related issue https://github.com/PixarAnimationStudios/OpenUSD/issues/2438 I assume this is a running in a Docker image?
I do think based on that change it should be fixed now, but I don't have a Docker setup currently to test it out.
Okay, I just confirmed that commit did fix the issue. @ysinh can you verify that everything works on your end as well?