mach3-software / MaCh3

The official repository for MaCh3
https://mach3-software.github.io/MaCh3/
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

End of unga bunga cmake? #42

Closed KSkwarczynski closed 3 months ago

KSkwarczynski commented 4 months ago

This has been tested both with CPU and GPU and compiles with both. This is our fancy cmake screen image

image

There are several improvments so quickly

image

Thanks to changes we have control over flags in CUDAProb3 image

We have proper autogenerated setup image

Thus we properly tranfer flags to for example T2K image

Here are targets and Config.cmake MaCh3Config.cmake.txt MaCh3Targets.cmake.txt

Is it perfect? Well no CUDAProb3 is a mess and it is impossible to compile them at the same time as linker goes crazy due to nvlink error : Multiple definition of '_ZN9cudaprob37physics15mix_data_deviceE' in 'CMakeFiles/OscClass.dir/__/_deps/cudaprob3-src/atmoscudapropagator.cu.o', first defined in 'CMakeFiles/OscClass.dir/__/_deps/cudaprob3-src/beamcudapropagator.cu.o' (target: sm_35)

Unless somone fixed CUDAProb3 we wwill still have fragile unga bunga cmake...

libanwars commented 4 months ago

Sorry for making the unga bunga CMake !!