Skip to content

Commit 6c91e45

Browse files
Merge branch 'main' of github.com:Algebraic-Programming/hLLM
2 parents 59a443a + 5f58c35 commit 6c91e45

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

meson.build

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,22 @@ endif
4343

4444
####### Getting HiCR dependency
4545

46-
HiCRDistributedBackend = []
4746
if 'cloudr' in engines or 'mpi' in engines
48-
HiCRDistributedBackend += ['mpi']
47+
if 'mpi' not in additionalHiCRBackends
48+
additionalHiCRBackends += ['mpi']
49+
endif
4950
endif
5051

5152
# Selecting default HiCR Backends
52-
HiCRBackends = ['hwloc', 'pthreads', 'boost'] + additionalHiCRBackends
53+
HiCRBackends = ['hwloc', 'pthreads', 'boost']
54+
55+
# adding additional backends but only if not already listed
56+
foreach b : additionalHiCRBackends
57+
if b not in HiCRBackends
58+
HiCRBackends += [b]
59+
endif
60+
endforeach
61+
5362
HiCRFrontends = [ ] + additionalHiCRFrontends
5463
HiCRProject = subproject(
5564
'HiCR',

0 commit comments

Comments
 (0)