Skip to content

Commit 0c2dd47

Browse files
authored
[CI] Update GPU image for CUDA 11.7 (#14363)
Following the docker file update in #14293, I'm doing the actual image update. Validated in https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-gpu/detail/ci-docker-staging/10/pipeline
1 parent 46fb2ff commit 0c2dd47

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

ci/jenkins/docker-images.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ci_arm: tlcpack/ci-arm:20230314-060145-ccc0b9162
2121
ci_cortexm: tlcpackstaging/ci_cortexm:20230124-233207-fd3f8035c
2222
ci_cpu: tlcpack/ci-cpu:20230308-070109-9d732d0fa
23-
ci_gpu: tlcpack/ci-gpu:20230308-070109-9d732d0fa
23+
ci_gpu: tlcpack/ci-gpu:20230318-060139-2ff41c615
2424
ci_hexagon: tlcpack/ci_hexagon:20230127-185848-95fa22308
2525
ci_i386: tlcpack/ci-i386:20221013-060115-61c9742ea
2626
ci_lint: tlcpack/ci-lint:20221013-060115-61c9742ea

src/target/target_kind.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ TargetJSON UpdateCUDAAttrs(TargetJSON target) {
161161
// Use the compute version of the first CUDA GPU instead
162162
TVMRetValue version;
163163
if (!DetectDeviceFlag({kDLCUDA, 0}, runtime::kComputeVersion, &version)) {
164-
LOG(WARNING) << "Unable to detect CUDA version, default to \"-arch=sm_20\" instead";
165-
archInt = 20;
164+
LOG(WARNING) << "Unable to detect CUDA version, default to \"-arch=sm_50\" instead";
165+
archInt = 50;
166166
} else {
167167
archInt = std::stod(version.operator std::string()) * 10 + 0.1;
168168
}
@@ -189,8 +189,8 @@ TargetJSON UpdateNVPTXAttrs(TargetJSON target) {
189189
// Use the compute version of the first CUDA GPU instead
190190
TVMRetValue version;
191191
if (!DetectDeviceFlag({kDLCUDA, 0}, runtime::kComputeVersion, &version)) {
192-
LOG(WARNING) << "Unable to detect CUDA version, default to \"-mcpu=sm_20\" instead";
193-
arch = 20;
192+
LOG(WARNING) << "Unable to detect CUDA version, default to \"-mcpu=sm_50\" instead";
193+
arch = 50;
194194
} else {
195195
arch = std::stod(version.operator std::string()) * 10 + 0.1;
196196
}

tests/python/frontend/tensorflow/test_forward.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ def compare_tf_with_tvm(
249249
targets=None,
250250
ignore_in_shape=False,
251251
convert_config=None,
252+
atol=1e-5,
253+
rtol=1e-5,
252254
):
253255
"""Generic function to generate and compare tensorflow and TVM output"""
254256

@@ -303,7 +305,7 @@ def name_without_num(name):
303305
for i, tf_out in enumerate(tf_output):
304306
if not isinstance(tf_out, np.ndarray):
305307
assert len(tvm_output[i].shape) == 0 # pylint: disable=len-as-condition
306-
tvm.testing.assert_allclose(tf_out, tvm_output[i], atol=1e-5, rtol=1e-5)
308+
tvm.testing.assert_allclose(tf_out, tvm_output[i], atol=atol, rtol=rtol)
307309

308310
sess.close()
309311

@@ -3401,6 +3403,8 @@ def _test_forward_crop_and_resize(
34013403
extrapolation_value=0.0,
34023404
method="bilinear",
34033405
dtype="float32",
3406+
atol=1e-4,
3407+
rtol=1e-4,
34043408
):
34053409
image = np.random.uniform(0, 10, size=img_shape).astype(dtype)
34063410
tf.reset_default_graph()
@@ -3415,7 +3419,7 @@ def _test_forward_crop_and_resize(
34153419
extrapolation_value=extrapolation_value,
34163420
name="crop_and_resize",
34173421
)
3418-
compare_tf_with_tvm([image], ["in_data:0"], "crop_and_resize:0")
3422+
compare_tf_with_tvm([image], ["in_data:0"], "crop_and_resize:0", atol=atol, rtol=rtol)
34193423

34203424

34213425
def test_forward_crop_and_resize():
@@ -3444,6 +3448,8 @@ def test_forward_crop_and_resize():
34443448
box_idx=[1, 0, 2, 3],
34453449
crop_size=[24, 24],
34463450
extrapolation_value=0.3,
3451+
atol=1e-3,
3452+
rtol=1e-3,
34473453
)
34483454
_test_forward_crop_and_resize(
34493455
img_shape=[20, 229, 229, 3],
@@ -3452,6 +3458,8 @@ def test_forward_crop_and_resize():
34523458
crop_size=[58, 58],
34533459
extrapolation_value=0.2,
34543460
method="nearest",
3461+
atol=1e-3,
3462+
rtol=1e-3,
34553463
)
34563464

34573465

tests/scripts/request_hook/request_hook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"https://github.com/dmlc/web-data/raw/main/gluoncv/detection/street_small.jpg": f"{BASE}/2022-10-05/gluon-small-stree.jpg",
110110
"https://github.com/dmlc/web-data/raw/main/tensorflow/models/Custom/placeholder.pb": f"{BASE}/dmlc/web-data/raw/main/tensorflow/models/Custom/placeholder.pb",
111111
"https://github.com/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/classify_image_graph_def-with_shapes.pb": f"{BASE}/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/classify_image_graph_def-with_shapes.pb",
112+
"https://github.com/dmlc/web-data/raw/main/tensorflow/models/ResnetV2/resnet-20180601_resnet_v2_imagenet-shapes.pb": f"{BASE}/dmlc/web-data/raw/main/tensorflow/models/ResnetV2/resnet-20180601_resnet_v2_imagenet-shapes.pb",
112113
"https://github.com/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/elephant-299.jpg": f"{BASE}/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/elephant-299.jpg",
113114
"https://github.com/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/imagenet_2012_challenge_label_map_proto.pbtxt": f"{BASE}/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/imagenet_2012_challenge_label_map_proto.pbtxt",
114115
"https://github.com/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/imagenet_synset_to_human_label_map.txt": f"{BASE}/dmlc/web-data/raw/main/tensorflow/models/InceptionV1/imagenet_synset_to_human_label_map.txt",

0 commit comments

Comments
 (0)