ludwig-cf / ludwig

A lattice Boltzmann code for complex fluids
https://ludwig.epcc.ed.ac.uk
Other
55 stars 36 forks source link

Failed to compile GPU version Ludwig #322

Closed NarQRY closed 1 month ago

NarQRY commented 2 months ago

I tried to compile Ludwig with nvcc but failed, attached error. error.txt

NarQRY commented 2 months ago

The system I use is CentOS 7.9.2009, Ludwig version is 0.22.0. CUDA I have tried 11.7, 11.2, 11.1 and 10.1, and all failed.

kevinstratford commented 2 months ago

OK. I think this looks like an omission in the config/unix-nvcc-default.mk, which needs to include the line

TARGET = nvcc

This should compile the correct target_cuda.c rather than the target_x86.c.

See, e.g., config/epcc-cirrus-nvcc.mk.

kevinstratford commented 1 month ago

I've added that in the development branch (#327) so I hope it worked ok.