Note to self
This works with Clang 12 on Manjaro, and maybe other Linux versions. CUDA 11.1 is installed with pacman in /opt/cuda
.
git clone https://github.com/llvm/llvm-project.git
diff --git a/src/library.cpp b/src/library.cpp | |
index cdc0a81..2d75d49 100644 | |
--- a/src/library.cpp | |
+++ b/src/library.cpp | |
@@ -482,10 +482,10 @@ char *lammps_command(void *handle, const char *cmd) | |
BEGIN_CAPTURE | |
{ | |
- if (lmp->update->whichflag != 0) | |
- lmp->error->all(FLERR,"Library error: issuing LAMMPS commands " |