diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..7c6ddc4 --- /dev/null +++ b/CITATION.cff @@ -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" \ No newline at end of file diff --git a/npu/build/build_template/check_license.sh b/npu/build/build_template/check_license.sh index 1c90310..ddc2aa0 100644 --- a/npu/build/build_template/check_license.sh +++ b/npu/build/build_template/check_license.sh @@ -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 \ No newline at end of file +fi diff --git a/npu/build/kernelbuilder.py b/npu/build/kernelbuilder.py index c9f96aa..d360787 100644 --- a/npu/build/kernelbuilder.py +++ b/npu/build/kernelbuilder.py @@ -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."""