diff options
author | Ben Wagner <benjaminwagner@google.com> | 2018-06-28 17:43:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-29 13:25:17 +0000 |
commit | a5e703043ff034afea41ea24e9d8f978f05ba678 (patch) | |
tree | b32e2fe6c9a23832790d991d670de955199bc866 /infra/bots/gen_tasks.go | |
parent | 55a7d22beb635ac960b16858b0ffe67424402950 (diff) |
Add OpenCL test job that runs hello-opencl.
Add NEO driver to opencl_linux asset.
Bug: skia:8081
Change-Id: Ic36c670f3cabd73119845e94fcb2f54525e83443
Reviewed-on: https://skia-review.googlesource.com/138264
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Ben Wagner <benjaminwagner@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'infra/bots/gen_tasks.go')
-rw-r--r-- | infra/bots/gen_tasks.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/infra/bots/gen_tasks.go b/infra/bots/gen_tasks.go index dafd403720..53e68db2bd 100644 --- a/infra/bots/gen_tasks.go +++ b/infra/bots/gen_tasks.go @@ -991,6 +991,10 @@ func test(b *specs.TasksCfgBuilder, name string, parts map[string]string, compil recipe := "test" if strings.Contains(name, "SKQP") { recipe = "skqp_test" + } else if strings.Contains(name, "OpenCL") { + // TODO(dogben): Longer term we may not want this to be called a "Test" task, but until we start + // running hs_bench or kx, it will be easier to fit into the current job name schema. + recipe = "compute_test" } extraProps := map[string]string{} iid := internalHardwareLabel(parts) @@ -1291,6 +1295,12 @@ func process(b *specs.TasksCfgBuilder, name string) { pkgs = append(pkgs, b.MustGetCipdPackageFromAsset("linux_vulkan_intel_driver_debug")) } } + if strings.Contains(name, "OpenCL") { + pkgs = append(pkgs, + b.MustGetCipdPackageFromAsset("opencl_ocl_icd_linux"), + b.MustGetCipdPackageFromAsset("opencl_intel_neo_linux"), + ) + } } if strings.Contains(name, "ProcDump") { pkgs = append(pkgs, b.MustGetCipdPackageFromAsset("procdump_win")) |