Skip to content

Commit

Permalink
update config to allow custom OFI dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rdfriese committed Sep 27, 2024
1 parent 504a497 commit 9d02e1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ AC_ARG_ENABLE([stats],
[AC_HELP_STRING([--enable-stats],
[Enable statistics (default: disabled)])])

AC_ARG_WITH([ofi],
[AC_HELP_STRING([--with-ofi],
[Specify the path to libfabric install dir])],
[OFI_PATH="$withval"],
[OFI_PATH="/usr/local"])

AC_ARG_WITH([ofi-provider],
[AC_HELP_STRING([--with-ofi-provider],
[Manually select the underlying OFI provider (e.g., verbs, default: none)])],
[AM_CONDITIONAL(WITH_OFI_PROVIDER, true)
AC_DEFINE(ROFI_OFI_PROVIDER,[$with_ofi_provider],[OFI Provider])],
[AM_CONDITIONAL(WITH_OFI_PROVIDER, false)])

LDFLAGS="$LDFLAGS -L$OFI_PATH/lib -Wl,-rpath,$OFI_PATH/lib"
CPPFLAGS="$CPPFLAGS -I$OFI_PATH/include"

AC_CHECK_HEADERS([stdio.h], [],[AC_MSG_ERROR[stdio.h not found!]])
AC_CHECK_HEADERS([sys/socket.h], [],[AC_MSG_ERROR[sys/socket.h not found!]])
Expand Down
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ librofi_la_SOURCES = api.c core.c rt.c transport.c mr.c #context.c
librofi_la_SOURCES += include/rofi_atomic.h include/rofi_debug.h include/rofi_internal.h include/mr.h include/rt.h
librofi_la_LIBADD = $(top_builddir)/src/pmi-simple/libpmi_simple.la
librofi_la_LDFLAGS = -lm
AM_LDFLAGS = $(LDFLAGS)

include_HEADERS = $(abs_top_srcdir)/src/include/rofi.h
EXTRA_DIST = $(abs_top_srcdir)/src/include/rofi_debug.h
4 changes: 3 additions & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ rofi_sharray_LDADD = ../src/librofi.la

rofi_barrier_SOURCES = barrier.c utils.c utils.h
rofi_barrier_LDFLAGS = $(linker_flags)
rofi_barrier_LDADD = ../src/librofi.la -lm
rofi_barrier_LDADD = ../src/librofi.la -lm

AM_LDFLAGS = $(LDFLAGS)

0 comments on commit 9d02e1a

Please sign in to comment.