@@ -50,29 +50,34 @@ def do_dependency(args):
50
50
ocl_header_dir = os .path .join (args .obj_dir , "OpenCL-Headers" )
51
51
if not os .path .isdir (ocl_header_dir ):
52
52
clone_cmd = ["git" , "clone" , "https://github.com/KhronosGroup/OpenCL-Headers" ,
53
- "OpenCL-Headers" , "-b" , "v2020.06.16 " ]
53
+ "OpenCL-Headers" , "-b" , "master " ]
54
54
subprocess .check_call (clone_cmd , cwd = args .obj_dir )
55
55
else :
56
56
fetch_cmd = ["git" , "pull" , "--ff" , "--ff-only" , "origin" ]
57
57
subprocess .check_call (fetch_cmd , cwd = ocl_header_dir )
58
58
59
- # Workaround to unblock CI until KhronosGroup/OpenCL-ICD-Loader/pull/124
60
- # is submitted
61
- checkout_cmd = ["git" , "checkout" , "d1b936b72b9610626ecab8a991cec18348fba047 " ]
59
+ # Checkout fixed version to avoid unexpected issues coming from upstream
60
+ # Specific version can be uplifted as soon as such need arise
61
+ checkout_cmd = ["git" , "checkout" , "23710f1b99186065c1768fc3098ba681adc0f253 " ]
62
62
subprocess .check_call (checkout_cmd , cwd = ocl_header_dir )
63
63
64
64
# fetch and build OpenCL ICD loader
65
65
icd_loader_dir = os .path .join (args .obj_dir , "OpenCL-ICD-Loader" )
66
66
if not os .path .isdir (icd_loader_dir ):
67
67
clone_cmd = ["git" , "clone" ,
68
68
"https://github.com/KhronosGroup/OpenCL-ICD-Loader" ,
69
- "OpenCL-ICD-Loader" , "-b" , "v2020.06.16 " ]
69
+ "OpenCL-ICD-Loader" , "-b" , "master " ]
70
70
71
71
subprocess .check_call (clone_cmd , cwd = args .obj_dir )
72
72
else :
73
73
fetch_cmd = ["git" , "pull" , "--ff" , "--ff-only" , "origin" ]
74
74
subprocess .check_call (fetch_cmd , cwd = icd_loader_dir )
75
75
76
+ # Checkout fixed version to avoid unexpected issues coming from upstream
77
+ # Specific version can be uplifted as soon as such need arise
78
+ checkout_cmd = ["git" , "checkout" , "5f8249691ec8c25775789498951f8e9eb62c201d" ]
79
+ subprocess .check_call (checkout_cmd , cwd = icd_loader_dir )
80
+
76
81
icd_build_dir = os .path .join (icd_loader_dir , "build" )
77
82
if os .path .isdir (icd_build_dir ):
78
83
shutil .rmtree (icd_build_dir )
@@ -119,4 +124,3 @@ def main():
119
124
ret = main ()
120
125
exit_code = 0 if ret else 1
121
126
sys .exit (exit_code )
122
-
0 commit comments