-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6062 from hzhou/2206_stream_workq
stream: implement stream_workq Approved-by: Ken Raffenetti
- Loading branch information
Showing
47 changed files
with
1,416 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/sh | ||
## | ||
## Copyright (C) by Argonne National Laboratory | ||
## See COPYRIGHT in top-level directory | ||
## | ||
|
||
# Wrapper to create .lo objects with non-standard compilers, e.g. NVCC. | ||
# This is hack assuming | ||
# 1. option "-Xcompiler -fPIC" to create PIC object. | ||
# 2. the format will remain compatible with libtool. | ||
# | ||
|
||
set -e | ||
|
||
verbose= | ||
if test "$1" = "--verbose" ; then | ||
verbose=1 | ||
shift | ||
fi | ||
|
||
LO_FILEPATH="$1" | ||
O_FILEPATH="${LO_FILEPATH%%.lo}.o" | ||
shift # handle the rest of the arguments together with ${@} | ||
|
||
LO_DIR=$(dirname $O_FILEPATH) | ||
O_FILENAME=$(basename $O_FILEPATH) | ||
|
||
LOCAL_PIC_DIR=".libs/" | ||
LOCAL_NPIC_DIR="" | ||
PIC_DIR="$LO_DIR/$LOCAL_PIC_DIR" | ||
NPIC_DIR="$LO_DIR/$LOCAL_NPIC_DIR" | ||
|
||
PIC_FILEPATH="$PIC_DIR/$O_FILENAME" | ||
NPIC_FILEPATH="$NPIC_DIR/$O_FILENAME" | ||
LOCAL_PIC_FILEPATH="$LOCAL_PIC_DIR$O_FILENAME" | ||
LOCAL_NPIC_FILEPATH="$LOCAL_NPIC_DIR$O_FILENAME" | ||
|
||
if test ! -d "$PIC_DIR" ; then | ||
mkdir -p "$PIC_DIR" | ||
fi | ||
|
||
CMD="${@} -Xcompiler -fPIC -o $PIC_FILEPATH" | ||
if test "$verbose" ; then echo "$CMD" ; fi | ||
eval "$CMD" | ||
|
||
CMD="${@} -o $NPIC_FILEPATH" | ||
if test "$verbose" ; then echo "$CMD" ; fi | ||
eval "$CMD" | ||
|
||
cat > $LO_FILEPATH <<EOF | ||
# $LO_FILEPATH - a libtool object file | ||
# Generated by libtool (GNU libtool) 2.4.5 | ||
# | ||
# Please DO NOT delete this file! | ||
# It is necessary for linking the library. | ||
# Name of the PIC object. | ||
pic_object="$LOCAL_PIC_FILEPATH" | ||
# Name of the non-PIC object. | ||
non_pic_object="$LOCAL_NPIC_FILEPATH" | ||
EOF | ||
|
Submodule yaksa
updated
8 files
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
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
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.