hi,
I tried to add some options for llvm to get better performance base the lammps. When I add -mllvm -neon-nonconst-stride-overhead=5 -mllvm -slp-threshold=100 in the cmake/CMakeLists.txt.
Then, I use the following command to generate the Makefile, and found the 2nd -mllvm is missing.
If fact, I already add the Prefix SHELL: according target_compile_options — CMake 3.27.0-rc2 Documentation showed as above cmake/CMakeLists.txt, but it still failed.
So need any extra attention for the lammps project ?
Edit: after some experiments I think the point above is not the real problem. The real point is that it only works for parameters added by add_compile_options(), while setting CMAKE_TUNE_DEFAULT does not work. I don’t know why.