You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/11/16 05:59:57 UTC
[GitHub] [tvm] echuraev opened a new pull request, #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
echuraev opened a new pull request, #13400:
URL: https://github.com/apache/tvm/pull/13400
Enable OpenCL cpp tests in CI
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] echuraev commented on pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
echuraev commented on PR #13400:
URL: https://github.com/apache/tvm/pull/13400#issuecomment-1344084790
@tvm-bot rerun
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] echuraev commented on a diff in pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
echuraev commented on code in PR #13400:
URL: https://github.com/apache/tvm/pull/13400#discussion_r1044768717
##########
ci/jenkins/templates/gpu_jenkinsfile.groovy.j2:
##########
@@ -74,6 +74,14 @@
label: 'Run Java unit tests',
)
{% endif %}
+ sh (
+ script: "${docker_run} ${ci_gpu} python3 ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --cmake-target opencl-cpptest --build-dir build",
+ label: 'Make OpenCL cpp unit tests',
+ )
+ sh (
+ script: "${docker_run} ${ci_gpu} ./tests/scripts/task_opencl_cpp_unittest.sh",
+ label: 'Run OpenCL cpp unit tests',
+ )
Review Comment:
Done
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] echuraev commented on a diff in pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
echuraev commented on code in PR #13400:
URL: https://github.com/apache/tvm/pull/13400#discussion_r1024894140
##########
tests/scripts/task_config_build_gpu.sh:
##########
@@ -23,12 +23,28 @@ mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
cp ../cmake/config.cmake .
+# GoogleTest uses a Live-at-Head philosophy:
+# https://github.com/google/googletest#live-at-head
+# therefore we need to grab a specific hash and update it
+# periodically to match the head of the repo
+repo_url="https://github.com/google/googletest"
+repo_revision="830fb567285c63ab5b5873e2e8b02f2249864916"
+archive_name="${repo_revision}.tar.gz"
+archive_url="${repo_url}/archive/${archive_name}"
+archive_folder="googletest-${repo_revision}"
+archive_hash="10f10ed771efc64a1d8234a7e4801838a468f8990e5d6d8fcf63e89f8d1455c4f9c5adc0bb829669f381609a9abf84e4c91a7fdd7404630f375f38fb485ef0eb"
+
+curl -sL "${archive_url}" -o "${archive_name}"
+echo "$archive_hash" ${archive_name} | sha512sum -c
+tar xf "${archive_name}"
Review Comment:
It is necessary to have google tests source code to build them for the device. In the CI we could use system GTest, but I didn't want to change the build mechanism in the CMake files, because I think it is better not to use system gtest but build it for the target device.
This is why we need to download gtest source code in the build directory and build `tvm_runtime` with it.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] echuraev commented on a diff in pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
echuraev commented on code in PR #13400:
URL: https://github.com/apache/tvm/pull/13400#discussion_r1024894140
##########
tests/scripts/task_config_build_gpu.sh:
##########
@@ -23,12 +23,28 @@ mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
cp ../cmake/config.cmake .
+# GoogleTest uses a Live-at-Head philosophy:
+# https://github.com/google/googletest#live-at-head
+# therefore we need to grab a specific hash and update it
+# periodically to match the head of the repo
+repo_url="https://github.com/google/googletest"
+repo_revision="830fb567285c63ab5b5873e2e8b02f2249864916"
+archive_name="${repo_revision}.tar.gz"
+archive_url="${repo_url}/archive/${archive_name}"
+archive_folder="googletest-${repo_revision}"
+archive_hash="10f10ed771efc64a1d8234a7e4801838a468f8990e5d6d8fcf63e89f8d1455c4f9c5adc0bb829669f381609a9abf84e4c91a7fdd7404630f375f38fb485ef0eb"
+
+curl -sL "${archive_url}" -o "${archive_name}"
+echo "$archive_hash" ${archive_name} | sha512sum -c
+tar xf "${archive_name}"
Review Comment:
It is necessary to have google tests source code to build them for the device. In the CI we could use system GTest, but I didn't want to change the build mechanism in the CMake files, because I think it is better not to use system gtest but build it for the target device.
This is why we need to download gtest source code in the build directory and build `tvm_runtime` with it. Please, let me know if you see a better solution for this problem. I thought about adding gtest source code to the docker image, but not sure that it is the better solution.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] echuraev commented on pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
echuraev commented on PR #13400:
URL: https://github.com/apache/tvm/pull/13400#issuecomment-1318270155
@driazati, @masahi please review it.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] driazati commented on pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
driazati commented on PR #13400:
URL: https://github.com/apache/tvm/pull/13400#issuecomment-1344716828
lgtm assuming CI passes on the /branch jobs
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] driazati commented on a diff in pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
driazati commented on code in PR #13400:
URL: https://github.com/apache/tvm/pull/13400#discussion_r1044684769
##########
ci/jenkins/templates/gpu_jenkinsfile.groovy.j2:
##########
@@ -74,6 +74,14 @@
label: 'Run Java unit tests',
)
{% endif %}
+ sh (
+ script: "${docker_run} ${ci_gpu} python3 ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --cmake-target opencl-cpptest --build-dir build",
+ label: 'Make OpenCL cpp unit tests',
+ )
+ sh (
+ script: "${docker_run} ${ci_gpu} ./tests/scripts/task_opencl_cpp_unittest.sh",
+ label: 'Run OpenCL cpp unit tests',
+ )
Review Comment:
Can you move this next to the `cpp_unittests` above? Right now this job is run 3 times afaik and pytest knows that each job should only run 1/3 of the tests, but this runs all the OpenCL tests 3 times
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] driazati commented on a diff in pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
driazati commented on code in PR #13400:
URL: https://github.com/apache/tvm/pull/13400#discussion_r1028462786
##########
tests/scripts/task_config_build_gpu.sh:
##########
@@ -23,12 +23,28 @@ mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
cp ../cmake/config.cmake .
+# GoogleTest uses a Live-at-Head philosophy:
+# https://github.com/google/googletest#live-at-head
+# therefore we need to grab a specific hash and update it
+# periodically to match the head of the repo
+repo_url="https://github.com/google/googletest"
+repo_revision="830fb567285c63ab5b5873e2e8b02f2249864916"
+archive_name="${repo_revision}.tar.gz"
+archive_url="${repo_url}/archive/${archive_name}"
+archive_folder="googletest-${repo_revision}"
+archive_hash="10f10ed771efc64a1d8234a7e4801838a468f8990e5d6d8fcf63e89f8d1455c4f9c5adc0bb829669f381609a9abf84e4c91a7fdd7404630f375f38fb485ef0eb"
+
+curl -sL "${archive_url}" -o "${archive_name}"
+echo "$archive_hash" ${archive_name} | sha512sum -c
+tar xf "${archive_name}"
Review Comment:
The downloading is fine but this should be moved into the GPU docker image (https://github.com/apache/tvm/blob/main/docker/Dockerfile.ci_gpu) so we don't have to download it fresh each time. You'll have to send a separate PR for the docker changes, then we can update the images to use the new one, then once that's done we can merge this PR
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] github-actions[bot] commented on pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13400:
URL: https://github.com/apache/tvm/pull/13400#issuecomment-1344085181
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/3656268941
<details>
```
Traceback (most recent call last):
File "ci/scripts/github/github_tvmbot.py", line 593, in comment_failure
raise item
File "ci/scripts/github/github_tvmbot.py", line 699, in run
pr.rerun_jenkins_ci()
File "ci/scripts/github/github_tvmbot.py", line 552, in rerun_jenkins_ci
post(url, auth=("tvm-bot", TVM_BOT_JENKINS_TOKEN))
File "/home/runner/work/tvm/tvm/ci/scripts/jenkins/git_utils.py", line 53, in post
with request.urlopen(req, data) as response:
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Server Error
```
with response
```
<!DOCTYPE html><html><head resURL="/static/e3b9d568" data-rooturl="" data-resurl="/static/e3b9d568" data-extensions-available="true" data-unit-test="false" data-imagesurl="/static/e3b9d568/images" data-crumb-header="Jenkins-Crumb" data-crumb-value="aa752b28f33c35d6a8fed8d178e58dff1ff8576cbc6231ce35239da638091bc9ac3d36ffd5d6e8e10c48590999ea79b73e8a2af7962591edeaee138e85f7aa8a">
<title>Jenkins [Jenkins]</title><link rel="stylesheet" href="/static/e3b9d568/jsbundles/styles.css" type="text/css"><link rel="stylesheet" href="/static/e3b9d568/css/responsive-grid.css" type="text/css"><link rel="shortcut icon" href="/static/e3b9d568/favicon.ico" type="image/vnd.microsoft.icon"><script src="/static/e3b9d568/scripts/prototype.js" type="text/javascript"></script><script src="/static/e3b9d568/scripts/behavior.js" type="text/javascript"></script><script src='/adjuncts/e3b9d568/org/kohsuke/stapler/bind.js' type='text/javascript'></script><script src="/static/e3b9d568/scripts/yui/yahoo/yahoo-min.js"></script><script src="/static/e3b9d568/scripts/yui/dom/dom-min.js"></script><script src="/static/e3b9d568/scripts/yui/event/event-min.js"></script><script src="/static/e3b9d568/scripts/yui/animation/animation-min.js"></script><script src="/static/e3b9d568/scripts/yui/dragdrop/dragdrop-min.js"></script><script src="/static/e3b9d568/scripts/yui/container/container-min.js"
></script><script src="/static/e3b9d568/scripts/yui/connection/connection-min.js"></script><script src="/static/e3b9d568/scripts/yui/datasource/datasource-min.js"></script><script src="/static/e3b9d568/scripts/yui/autocomplete/autocomplete-min.js"></script><script src="/static/e3b9d568/scripts/yui/menu/menu-min.js"></script><script src="/static/e3b9d568/scripts/yui/element/element-min.js"></script><script src="/static/e3b9d568/scripts/yui/button/button-min.js"></script><script src="/static/e3b9d568/scripts/yui/storage/storage-min.js"></script><script src="/static/e3b9d568/scripts/hudson-behavior.js" type="text/javascript"></script><script src="/static/e3b9d568/scripts/sortable.js" type="text/javascript"></script><link rel="stylesheet" href="/static/e3b9d568/scripts/yui/container/assets/container.css" type="text/css"><link rel="stylesheet" href="/static/e3b9d568/scripts/yui/container/assets/skins/sam/container.css" type="text/css"><link rel="stylesheet" href="/static/e3b9d568/scripts
/yui/menu/assets/skins/sam/menu.css" type="text/css"><link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Jenkins"><meta name="ROBOTS" content="INDEX,NOFOLLOW"><meta name="viewport" content="width=device-width, initial-scale=1"><script src="/static/e3b9d568/jsbundles/vendors.js" type="text/javascript"></script><script src="/static/e3b9d568/jsbundles/page-init.js" type="text/javascript"></script><script src="/static/e3b9d568/jsbundles/sortable-drag-drop.js" type="text/javascript"></script></head><body data-model-type="hudson.model.Hudson" id="jenkins" class="yui-skin-sam one-column jenkins-2.361.2" data-version="2.361.2"><a href="#skip2content" class="skiplink">Skip to content</a><header id="page-header" class="page-header"><div class="page-header__brand"><div class="logo"><a id="jenkins-home-link" href="/"><img src="/static/e3b9d568/images/svgs/logo.svg" alt="[Jenkins]" id="jenkins-head-icon"><img src="/static/e3b9d568/images/title.svg" alt="
Jenkins" width="139" id="jenkins-name-icon" height="34"></a></div><a href="/" class="page-header__brand-link"><img src="/static/e3b9d568/images/svgs/logo.svg" alt="[Jenkins]" class="page-header__brand-image"><span class="page-header__brand-name">Jenkins</span></a></div><div class="searchbox hidden-xs"><form role="search" method="get" name="search" action="/search/" style="position:relative;" class="no-json"><div id="search-box-sizer"></div><div id="searchform"><input role="searchbox" name="q" placeholder="Search" id="search-box" class="main-search__input"><span class="main-search__icon-leading"><svg class="" class="" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" class="" viewBox="0 0 512 512"><title></title><path d="M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M338.29 3
38.29L448 448"/></svg></span><a href="https://www.jenkins.io/redirect/search-box" class="main-search__icon-trailing"><svg class="" class="" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 40a216 216 0 10216 216A216 216 0 00256 40z" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="38"/><path d="M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296" fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="38"/><circle cx="250" cy="360" r="25" fill="currentColor"/></svg></a><div id="search-box-completion" data-search-url="/search/"></div><script src='/adjuncts/e3b9d568/jenkins/views/JenkinsHeader/search-box.js' type='text/javascript'></script></div></form></div><div class="login page-header__hyperlinks"><div id="visible-am-insertion" class="page-header__am-wrapper"></d
iv><div id="visible-sec-am-insertion" class="page-header__am-wrapper"></div><a href="/securityRealm/commenceLogin?from=%2Fjob%2Ftvm-arm%2Fjob%2FPR-13400%2FbuildWithParameters"><b>log in</b></a></div></header><script src="/static/e3b9d568/jsbundles/keyboard-shortcuts.js" type="text/javascript"></script><div id="breadcrumbBar"><script src='/adjuncts/e3b9d568/lib/layout/breadcrumbs.js' type='text/javascript'></script><div class="top-sticker noedge"><div class="top-sticker-inner"><div class="jenkins-breadcrumbs"><ul id="breadcrumbs"><li class="item"><a href="/" class="model-link">Dashboard</a></li><li href="/" class="children"></li></ul><div id="breadcrumb-menu-target"></div></div></div></div></div><div id="page-body" class="clear"><div id="main-panel"><a name="skip2content"></a><h1 style="text-align: center"><img src="/static/e3b9d568/images/rage.svg" width="154" height="179"><span style="font-size:50px"> Oops!</span></h1><div id="error-description"><h2 style="text-align: center">A pr
oblem occurred while processing the request.</h2><p style="text-align: center">Logging ID=b4ad09d9-1049-4975-b82a-3334b7fa7e88</div></div></div><footer class="page-footer"><div class="container-fluid"><div class="page-footer__flex-row"><div class="page-footer__footer-id-placeholder" id="footer"></div><div class="page-footer__links rest_api hidden-xs"><a href="api/">REST API</a></div><div class="page-footer__links page-footer__links--white jenkins_ver"><a rel="noopener noreferrer" href="https://www.jenkins.io/" target="_blank">Jenkins 2.361.2</a></div></div></div></footer></body></html>
```
</details>
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] masahi merged pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
masahi merged PR #13400:
URL: https://github.com/apache/tvm/pull/13400
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] tvm-bot commented on pull request #13400: [OpenCL][CI] Enable OpenCL cpp tests in CI
Posted by GitBox <gi...@apache.org>.
tvm-bot commented on PR #13400:
URL: https://github.com/apache/tvm/pull/13400#issuecomment-1316411680
<!---bot-comment-->
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @-ing them in a comment.
<sub>Generated by [tvm-bot](https://github.com/apache/tvm/blob/main/ci/README.md#github-actions)</sub>
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org