From a647c236d040736fe260c5c411ac7ace317297b4 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 16 Jan 2021 00:56:27 -0500 Subject: [PATCH] make categories contain lists instead of strings as we may have multiple supported settings --- python/lammps/core.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/lammps/core.py b/python/lammps/core.py index 7c078b9841..3f39ead4b8 100644 --- a/python/lammps/core.py +++ b/python/lammps/core.py @@ -1450,15 +1450,17 @@ class lammps(object): result = {} for p in ['GPU', 'KOKKOS', 'USER-INTEL', 'USER-OMP']: - c = 'api' result[p] = {} + c = 'api' + result[p][c] = [] for s in ['cuda', 'hip', 'pthreads', 'opencl', 'openmp', 'serial']: if self.lib.lammps_config_accelerator(p.encode(),c.encode(),s.encode()): - result[p][c] = s + result[p][c].append(s) c = 'precision' + result[p][c] = [] for s in ['double', 'mixed', 'single']: if self.lib.lammps_config_accelerator(p.encode(),c.encode(),s.encode()): - result[p][c] = s + result[p][c].append(s) return result # -------------------------------------------------------------------------