Adding support for ibverbs in net-linux-amd64-cuda.
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Thu, 26 Mar 2009 20:03:25 +0000 (20:03 +0000)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Thu, 26 Mar 2009 20:03:25 +0000 (20:03 +0000)
src/arch/net-linux-amd64-cuda/conv-mach-ibverbs.h [new file with mode: 0644]
src/arch/net-linux-amd64-cuda/conv-mach-ibverbs.sh [new file with mode: 0644]

diff --git a/src/arch/net-linux-amd64-cuda/conv-mach-ibverbs.h b/src/arch/net-linux-amd64-cuda/conv-mach-ibverbs.h
new file mode 100644 (file)
index 0000000..dac2693
--- /dev/null
@@ -0,0 +1,36 @@
+#undef CMK_USE_IBVERBS
+#define CMK_USE_IBVERBS                                1
+
+
+#undef CMK_NETPOLL
+#define CMK_NETPOLL                                            1
+
+#undef CMK_MALLOC_USE_GNU_MALLOC
+#define CMK_MALLOC_USE_GNU_MALLOC                          0
+
+#undef CMK_MALLOC_USE_OS_BUILTIN
+#define CMK_MALLOC_USE_OS_BUILTIN                          1
+
+#undef CMK_THREADS_USE_CONTEXT
+#undef CMK_THREADS_USE_JCONTEXT
+#define CMK_THREADS_USE_CONTEXT                            0
+#define CMK_THREADS_USE_JCONTEXT                           1
+
+#undef CMK_IMMEDIATE_MSG
+#define CMK_IMMEDIATE_MSG       0
+
+#undef CMK_BROADCAST_SPANNING_TREE
+#define CMK_BROADCAST_SPANNING_TREE 0
+
+#undef CMK_BROADCAST_HYPERCUBE
+#define CMK_BROADCAST_HYPERCUBE  1
+
+#undef CMK_DIRECT                 
+#define CMK_DIRECT                                        1
+
+#undef CMK_DISABLE_SYNC
+#define CMK_DISABLE_SYNC       1
+
+
+#undef CMK_IBVERBS_FAST_START
+#define CMK_IBVERBS_FAST_START                         1
diff --git a/src/arch/net-linux-amd64-cuda/conv-mach-ibverbs.sh b/src/arch/net-linux-amd64-cuda/conv-mach-ibverbs.sh
new file mode 100644 (file)
index 0000000..37429af
--- /dev/null
@@ -0,0 +1,18 @@
+#default ibverbs path for openib
+if test -z "$CMK_INCDIR"
+then
+  #openib-1.1
+  if test -f /opt/ofed/include/infiniband/verbs.h
+  then
+    CMK_INCDIR="-I/opt/ofed/include/"
+    CMK_LIBDIR="$CMK_LIBDIR -L/opt/ofed/lib64"
+       fi
+  if test -f /usr/local/ofed/include/infiniband/verbs.h
+  then
+    CMK_INCDIR="-I/usr/local/ofed/include/"
+    CMK_LIBDIR="$CMK_LIBDIR -L/usr/local/ofed/lib64"
+       fi
+fi
+
+CMK_LIBS="$CMK_LIBS -libverbs"
+