ソースを参照

move -lnuma to STARPU_LIBNUMA_LDFLAGS

Samuel Thibault 14 年 前
コミット
dac760f312
共有2 個のファイルを変更した6 個の追加4 個の削除を含む
  1. 1 1
      configure.ac
  2. 5 3
      mpi/Makefile.am

+ 1 - 1
configure.ac

@@ -135,7 +135,7 @@ STARPU_CHECK_SYNC_SYNCHRONIZE
 
 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE "
 
-AC_SEARCH_LIBS([set_mempolicy],[numa],[enable_libnuma=yes],[enable_libnuma=no])
+STARPU_SEARCH_LIBS([LIBNUMA],[set_mempolicy],[numa],[enable_libnuma=yes],[enable_libnuma=no])
 AC_MSG_CHECKING(whether libnuma is available)
 AC_MSG_RESULT($enable_libnuma)
 if test x$enable_libnuma = xyes; then

+ 5 - 3
mpi/Makefile.am

@@ -1,6 +1,6 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
-# Copyright (C) 2009, 2010  Université de Bordeaux 1
+# Copyright (C) 2009-2011  Université de Bordeaux 1
 # Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -101,7 +101,8 @@ examplebin_PROGRAMS += 				\
 	examples/mpi_lu/plu_example_double
 
 examples_mpi_lu_plu_example_float_LDADD =	\
-	libstarpumpi.la
+	libstarpumpi.la				\
+	$(STARPU_LIBNUMA_LDFLAGS)
 
 examples_mpi_lu_plu_example_float_SOURCES =	\
 	examples/mpi_lu/plu_example_float.c	\
@@ -111,7 +112,8 @@ examples_mpi_lu_plu_example_float_SOURCES =	\
 	$(top_srcdir)/examples/common/blas.c
 
 examples_mpi_lu_plu_example_double_LDADD =	\
-	libstarpumpi.la
+	libstarpumpi.la				\
+	$(STARPU_LIBNUMA_LDFLAGS)
 
 examples_mpi_lu_plu_example_double_SOURCES =	\
 	examples/mpi_lu/plu_example_double.c	\