Skip to content

Commit

Permalink
Add citation file (#7)
Browse files Browse the repository at this point in the history
* Add citation file

* Shane's orcid

Adds an aditional check to see if the license file is on a floating license server. (#9)

kernelbuilder falls over if the cache file does not exist
  • Loading branch information
mariodruiz authored and STFleming committed Mar 12, 2024
1 parent 8c7da24 commit 5b59b9c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
35 changes: 35 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cff-version: 1.2.0
message: "If you use use software, please cite it as below."
authors:
- family-names: "Patrick"
given-names: "Lysaght"
- family-names: "Graham"
given-names: "Schelle"
- family-names: "Shane"
given-names: "Fleming"
orcid: "https://orcid.org/0000-0002-3224-278X"
- family-names: "Sarunas"
given-names: "Kalade"
orcid: "https://orcid.org/0000-0001-5512-7402"
- family-names: "Cathal"
given-names: "McCabe"
orcid: "https://orcid.org/0009-0008-3486-6132"
- family-names: "Mario"
given-names: "Ruiz Noguera"
orcid: "https://orcid.org/0000-0002-3433-5883"
- family-names: "Naveen"
given-names: "Purushotham"
- family-names: "Hugo"
given-names: "Andrade"
- family-names: "Andrew"
given-names: "Schmidt"
orcid: "https://orcid.org/0009-0007-6666-0908"
- family-names: "Josh"
given-names: "Goldsmith"
orcid: "https://orcid.org/0000-0002-3257-3300"
- family-names: "Joshua"
given-names: "Lu"
title: "Riallto: an open-source exploration framework for first time users of the AMD Ryzen AI NPU"
version: 1.0
date-released: 2021-12-12
url: "https://github.com/AMDResearch/Riallto"
20 changes: 14 additions & 6 deletions npu/build/build_template/check_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ if [ -z "$XILINXD_LICENSE_FILE" ]; then
echo "Please see https://riallto.ai/install-riallto.html for license setup instructions."
exit 1
else
# If variable set, see if file exists
if [ ! -e "$XILINXD_LICENSE_FILE" ]; then
echo "The license file $XILINXD_LICENSE_FILE does not exist."
echo "Please see https://riallto.ai/install-riallto.html for license setup instructions."
exit 1
# Check if XILINXD_LICENSE_FILE is a file
if [ -e "$XILINXD_LICENSE_FILE" ]; then
echo "Found license file: $XILINXD_LICENSE_FILE"
else
# Assume XILINXD_LICENSE_FILE is a server, try to ping
server_address=$(echo $XILINXD_LICENSE_FILE | cut -d@ -f2)
if ping -c 1 $server_address &> /dev/null; then
echo "Server $server_address is reachable."
else
echo "Could not find license file of reach server address $server_address."
echo "Please see https://riallto.ai/install-riallto.html for license setup instructions."
exit 1
fi
fi
fi
fi
2 changes: 1 addition & 1 deletion npu/build/kernelbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class KernelObjectBuilder(WSLBuilder):
def clear_cache(cls):
if os.path.exists(cls.prebuilt_path) and glob.glob(os.path.join(cls.prebuilt_path, '*.o')):
prebuilt_files = os.path.join(cls.prebuilt_path, "*.o")
WSLBuilder()._wslcall(f"{wsl_prefix()}rm", [f"{wslpath(prebuilt_files)}"])
WSLBuilder()._wslcall(f"{wsl_prefix()}rm", ["-rf",f"{wslpath(prebuilt_files)}"])

def __init__(self, name, srccode, srcfile) -> None:
"""Return a new KernelObjectBuilder object."""
Expand Down

0 comments on commit 5b59b9c

Please sign in to comment.