forked from nest/nest-gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
4,812 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
cd src | ||
echo "Patch to Makefile.in link command for compiling and linking in one step" | ||
file_list=$(echo $(ls ../$ac_top_srcdir/src/*.cu ../$ac_top_srcdir/src/*.cpp | grep -v dummyfile.cpp)) #| xargs -n 1 basename)) | ||
escaped_rhs=$(echo "$file_list" | sed 's:[\/&]:\\&:g;$!s/$/\\/') | ||
cat ../$ac_top_srcdir/src/Makefile.in | sed 's/$(AM_V_CXXLD)$(/$(NVCC) -ccbin=$(MPICXX) --compiler-options "${COMPILER_FLAGS}" -I .. ${CUDA_FLAGS} ${CUDA_LDFLAGS} -o libneurongpu.so $(all_SOURCES) $(CUDA_LIBS)\n# $(AM_V_CXXLD)$(/' | sed "/libneurongpu_la_SOURCES =/ a all_SOURCES = $escaped_rhs" | sed 's/libneurongpu.la/libneurongpu.so/'> tmpfile | ||
cat ../$ac_top_srcdir/src/Makefile.in | sed 's/$(AM_V_CXXLD)$(/$(NVCC) -ccbin=$(MPICXX) --compiler-options "${COMPILER_FLAGS}" -I .. ${CUDA_FLAGS} ${CUDA_LDFLAGS} -o libneurongpu.so $(all_SOURCES) $(CUDA_LIBS) \ | ||
# $(AM_V_CXXLD)$(/' | sed "/libneurongpu_la_SOURCES =/ a\\ | ||
all_SOURCES = $escaped_rhs \\ | ||
" | sed 's/libneurongpu.la/libneurongpu.so/'> tmpfile | ||
mv tmpfile ../$ac_top_srcdir/src/Makefile.in | ||
cd .. | ||
#Becho "libtool postinstall_cmds patch for correcting @rpath in libneurongpu.so" | ||
#sed 's|postinstall_cmds=""|postinstall_cmds="./postinstall.sh"|g' libtool > libtool.fixed | ||
#Bcp -f libtool.fixed libtool | ||
#chmod +x libtool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cd src | ||
file_list=$(echo $(ls ../$ac_top_srcdir/src/*.cu ../$ac_top_srcdir/src/*.cpp | grep -v dummyfile.cpp)) #| xargs -n 1 basename)) | ||
escaped_rhs=$(echo "$file_list" | sed 's:[\/&]:\\&:g;$!s/$/\\/') | ||
cat ../$ac_top_srcdir/src/Makefile.in | sed 's/$(AM_V_CXXLD)$(/$(NVCC) -ccbin=$(MPICXX) --compiler-options "${COMPILER_FLAGS}" -I .. ${CUDA_FLAGS} ${CUDA_LDFLAGS} -o libneurongpu.so $(all_SOURCES) $(CUDA_LIBS)\n# $(AM_V_CXXLD)$(/' | sed "/libneurongpu_la_SOURCES =/ a all_SOURCES = $escaped_rhs" | sed 's/libneurongpu.la/libneurongpu.so/'> tmpfile | ||
mv tmpfile ../$ac_top_srcdir/src/Makefile.in | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cd src | ||
echo "Patch to Makefile.in link command for compiling and linking in one step" | ||
file_list=$(echo $(ls ../$ac_top_srcdir/src/*.cu ../$ac_top_srcdir/src/*.cpp | grep -v dummyfile.cpp)) #| xargs -n 1 basename)) | ||
escaped_rhs=$(echo "$file_list" | sed 's:[\/&]:\\&:g;$!s/$/\\/') | ||
cat ../$ac_top_srcdir/src/Makefile.in | sed 's/$(AM_V_CXXLD)$(/$(NVCC) -ccbin=$(MPICXX) --compiler-options "${COMPILER_FLAGS}" -I .. ${CUDA_FLAGS} ${CUDA_LDFLAGS} -o libneurongpu.so $(all_SOURCES) $(CUDA_LIBS) \ | ||
# $(AM_V_CXXLD)$(/' | sed "/libneurongpu_la_SOURCES =/ a\\ | ||
all_SOURCES = $escaped_rhs \\ | ||
" | sed 's/libneurongpu.la/libneurongpu.so/'> tmpfile | ||
mv tmpfile ../$ac_top_srcdir/src/Makefile.in | ||
cd .. | ||
#Becho "libtool postinstall_cmds patch for correcting @rpath in libneurongpu.so" | ||
#sed 's|postinstall_cmds=""|postinstall_cmds="./postinstall.sh"|g' libtool > libtool.fixed | ||
#Bcp -f libtool.fixed libtool | ||
#chmod +x libtool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
echo "libtool running postinstall.sh" | ||
install_name_tool -change @rpath/usr/local/lib/ /usr/local/lib/libcurand.10.dylib /usr/local/lib/libneurongpu.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.