From 7b63169455b6ff0bfae16d700e53d59bb4468fc4 Mon Sep 17 00:00:00 2001
From: Akash Kothari <akashk4@miranda.cs.illinois.edu>
Date: Sun, 23 May 2021 17:02:12 -0500
Subject: [PATCH] Minor fix in the install script for NVDLA

---
 hpvm/scripts/hpvm_installer.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hpvm/scripts/hpvm_installer.py b/hpvm/scripts/hpvm_installer.py
index 38d74f68fd..d6e6ea76fb 100755
--- a/hpvm/scripts/hpvm_installer.py
+++ b/hpvm/scripts/hpvm_installer.py
@@ -316,7 +316,8 @@ def build_nvdla_compiler():
 
     # Copy over the NVDLA and Protobuf libraries to 
     # a single directory
-    check_call(["mkdir", NVDLA_LIB_DIR])
+    #check_call(["mkdir", NVDLA_LIB_DIR])
+    makedirs(NVDLA_LIB_DIR, exist_ok=True)
     check_call(["cp", NVDLA_LIB, NVDLA_LIB_DIR])
     check_call(["cp", PROTOBUF_LIB, NVDLA_LIB_DIR])
     check_call(["cp", PROTOBUF_LIB, str(NVDLA_LIB_DIR) + "/" + PROTOBUF_LIB_V1])
-- 
GitLab