SPlisHSPlasH icon indicating copy to clipboard operation
SPlisHSPlasH copied to clipboard

Request to build an image in linux/arm64 splishsplash environment

Open BinglunWang opened this issue 6 months ago • 3 comments

Hope this messages finds you well.

Could anyone help us to build an image with linux/arm64 environment that can successfully build splishsplash?

I have to use a linux/arm64 cluster to run script by a environment based on splishsplash. But I don't have sudoer permission in the cluster. I tried to use docker buildx to build linux/arm64 environment but it doesn't work in the cluster.

Best wishes, Binglun

BinglunWang avatar Jun 13 '25 14:06 BinglunWang

As far as I'm aware, the only problem with building on ARM devices should be the AVX instructions that are used to accelerate the simulation. These can be turned off with a CMAKE flag -DUSE_AVX=Off. Can you share a bit more detail on the problem if that doesn't help?

digitalillusions avatar Jun 13 '25 14:06 digitalillusions

As far as I'm aware, the only problem with building on ARM devices should be the AVX instructions that are used to accelerate the simulation. These can be turned off with a CMAKE flag -DUSE_AVX=Off. Can you share a bit more detail on the problem if that doesn't help?

Thank you for your reply. The issues are from mainly 2 parts: missing wheels. & some source code is not support the arm64.

After I installed the missing wheels and remove the code that is not support for arm64, the simulation speed is very slow 5x 6x.

In my project, I actually use RL training in the simulator environment. Do you know how can I set to speed up the simulation?

BinglunWang avatar Jun 20 '25 11:06 BinglunWang

I attached my solution for your convenience and other users:

  1. environment, I build container image .sif by docker buildx with:

arm64dockerfile.txt

  1. environment parts: ignore the code in A. CMake/avx.cmake Image B. Full of SPlisHSPlasH/Utilities/AVX_math.h Image C. 3 parts in extern/eigen/CMakeLists.txt Image Image

BinglunWang avatar Jun 20 '25 11:06 BinglunWang