When I edit the lib/cudaMakefile.defaults and compile using make auto; make yes-user-cuda;make mpi I observe the same. Is there a way to verify what arch and precision modes where set?
If you build the lib/cuda manually you do something like this;
make precision=1,2,4 arch=20,35,etc
You should see those choices reflected in the compile lines (for the lib files)
and written into 2 files in lib/cuda - Makefile.defaults and Makefile.lammps
If you then build LAMMPS itself with the USER-CUDA package, it takes
those precision/arch settings from the lib/cuda/Makefile.lammps file, so
you should also see them reflected in the LAMMPS compile lines.
Make.py is simply doing both steps for you. Underneath it is doing
the same thing.
Sir, I am also facing the same problem. i think there is bug in Makefile.common:
given below is line 83-118 of file Makefile.common in lib/cuda dir
As you can see irrespective of choice given, code below will assign -DCUDA_ARCH=20 flag
ah, will try that…now I get confirmation upon compilation that the right arch is picked, thanks, btw there are other errors in that code block
to respond to Steve, the page is a bit incomplete, for example the doc states ‘mode=single’ but ‘mode’ does not appear as option to switch -cuda, so is ‘single’ precision=1? when I use mode=4 or precision=4 with Make.py I receive invalid args error…ah, the mode option are ‘single,double,mixed’ (buried in code)
also in the manual section the first command ‘make’ will just display the help page, I believe it should be ‘make auto’