Skip to content

Commit 529b2a4

Browse files
author
Johann George (QLogic)
committed
Initial commit
0 parents  commit 529b2a4

File tree

9 files changed

+7530
-0
lines changed

9 files changed

+7530
-0
lines changed

COPYING

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CC = gcc
2+
CFLAGS = -Wall -O -DRDMA
3+
4+
all: qperf
5+
6+
qperf: qperf.o ip.o ib.o help.o
7+
$(CC) -DRDMA -o $@ $^ -libverbs
8+
9+
help.c: help.txt
10+
./mkhelp RDMA
11+
12+
.PHONY: clean
13+
clean:
14+
rm -f *.o help.c qperf
15+
16+
.PHONY: install
17+
install:
18+
cp qperf /usr/local/bin

configure

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/sh
2+
#
3+
LIBIBV=libibverbs.so.1
4+
5+
# Look for InfiniBand verbs library.
6+
#
7+
for DIR in /lib /usr/lib64 /usr/lib /usr/local/lib /usr/local/ibed/lib64 ""; do
8+
[ -e $DIR/$LIBIBV ] &&
9+
break
10+
done
11+
12+
13+
# Set up parameters.
14+
#
15+
if [ "`uname -m`" = ppc64 ]; then
16+
K_M64=-m64
17+
echo "Making PowerPC version"
18+
fi
19+
if [ -z "$DIR" ]; then
20+
echo "Could not find $LIBIBV; making non-RDMA version"
21+
else
22+
echo "Found $LIBIBV in $DIR"
23+
K_IB_O="ib.o"
24+
K_DEF_IB="-DRDMA"
25+
if [ "$DIR" = "/usr/lib64" ]; then
26+
K_LIBS="-libverbs"
27+
else
28+
K_LIBS="-lsysfs -Wl,--rpath -Wl,$DIR $DIR/$LIBIBV"
29+
fi
30+
K_IB=RDMA
31+
fi
32+
33+
34+
# Produce Makefile
35+
#
36+
cat <<EOF >Makefile
37+
CC = gcc $K_M64
38+
CFLAGS = -Wall -O $K_DEF_IB
39+
40+
all: qperf
41+
42+
qperf: qperf.o ip.o $K_IB_O help.o
43+
\$(CC) $K_DEF_IB -o \$@ \$^ $K_LIBS
44+
45+
help.c: help.txt
46+
./mkhelp $K_IB
47+
48+
.PHONY: clean
49+
clean:
50+
rm -f *.o help.c qperf
51+
52+
.PHONY: install
53+
install:
54+
cp qperf /usr/local/bin
55+
EOF

0 commit comments

Comments
 (0)