| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ |
| "inspect/client.shard.cml", |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| runner: "elf", |
| binary: "bin/opencl_loader", |
| lifecycle: { stop_event: "notify" }, |
| }, |
| collections: [ |
| { |
| name: "icd-loaders", |
| environment: "#icd-loader-env", |
| durability: "transient", |
| }, |
| ], |
| capabilities: [ |
| { |
| protocol: [ "fuchsia.opencl.loader.Loader" ], |
| }, |
| { |
| runner: "icd_runner", |
| path: "/svc/fuchsia.component.runner.ComponentRunner", |
| }, |
| ], |
| use: [ |
| { |
| directory: "dev-gpu", |
| rights: [ "r*" ], |
| path: "/dev/class/gpu", |
| }, |
| { |
| directory: "dev-gpu-dependency-injection", |
| rights: [ "r*" ], |
| path: "/dev/class/gpu-dependency-injection", |
| }, |
| { |
| protocol: "fuchsia.component.Realm", |
| from: "framework", |
| }, |
| { |
| protocol: "fuchsia.memorypressure.Provider", |
| from: "parent", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ "fuchsia.logger.LogSink" ], |
| from: "parent", |
| to: [ "#icd-loaders" ], |
| }, |
| ], |
| expose: [ |
| { |
| protocol: "fuchsia.opencl.loader.Loader", |
| from: "self", |
| }, |
| ], |
| environments: [ |
| { |
| name: "icd-loader-env", |
| extends: "realm", |
| runners: [ |
| { |
| runner: "icd_runner", |
| from: "self", |
| }, |
| ], |
| }, |
| ], |
| } |