Added commands to build noAccelStub library.
authorDavid Kunzman <kunzman2@illinois.edu>
Wed, 11 Mar 2009 21:28:07 +0000 (21:28 +0000)
committerDavid Kunzman <kunzman2@illinois.edu>
Wed, 11 Mar 2009 21:28:07 +0000 (21:28 +0000)
src/arch/net-linux-cell/special.sh

index a0373cdb21c2ace32a10adae3e12103439e6ef66..375f2199c180a75403bd95ee321093a660e8bd1a 100755 (executable)
@@ -31,4 +31,13 @@ PPU_EMBEDSPU = $CMK_PPU_EMBEDSPU
 SPERT_LIBS = $CMK_SPERT_LIBS
 EOF
 
-cd cell_lib && make install
+# Compile and install the Offload API
+cd cell_lib && make install && cd ..
+
+# Create the empty stub library (i.e. no SPEs)
+../bin/charmc -c -o emptyRegisterAccelSPEFuncs.o emptyRegisterAccelSPEFuncs.c
+$CMK_SPE_CC -I../include -L../lib -o emptySpertMain_spe emptyFuncLookup.c -lcellspu
+$CMK_PPU_EMBEDSPU spert_main emptySpertMain_spe emptySpertMain.o
+../bin/charmc -o libnoAccelStub.a emptyRegisterAccelSPEFuncs.o emptySpertMain.o
+cp libnoAccelStub.a ../lib
+