Mousius commented on a change in pull request #10246:
URL: https://github.com/apache/tvm/pull/10246#discussion_r806770834
##########
File path: tests/scripts/task_build.sh
##########
@@ -15,5 +15,29 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-export VTA_HW_PATH=`pwd`/3rdparty/vta-hw
-cd $1 && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && make $2 && cd ..
+set -eux
+
+VTA_HW_PATH=$(pwd)/3rdparty/vta-hw
+export VTA_HW_PATH
+
+pushd "$1"
+
+# Set up sccache to use S3
+export SCCACHE_BUCKET=$3
+export CC=/opt/sccache/cc
+export CXX=/opt/sccache/c++
+echo "$SCCACHE_BUCKET" | wc
+echo "$SCCACHE_BUCKET" | base64
+
+sccache --start-server || echo failed
+sccache --show-stats
+
+# Use ninja as the builder for cmake
+pip install --user ninja
Review comment:
Aha! Yeah, that'd be much better than a side channel `pip install`
thanks @leandron!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]