Blender V5.3
device/hiprt/queue.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#ifdef WITH_HIPRT
8
9# include "device/memory.h"
10# include "device/queue.h"
11
12# include "device/hip/queue.h"
13
15
16class HIPRTDevice;
17
18class HIPRTDeviceQueue : public HIPDeviceQueue {
19 public:
20 HIPRTDeviceQueue(HIPRTDevice *device);
21 ~HIPRTDeviceQueue() override = default;
22
23 int num_concurrent_states(const size_t state_size) const override;
24 bool enqueue(DeviceKernel kernel,
25 const int work_size,
26 const DeviceKernelArguments &args) override;
27
28 protected:
29 HIPRTDevice *hiprt_device_;
30};
31
33
34#endif /* WITH_HIPRT */
#define CCL_NAMESPACE_END
ccl_gpu_kernel_postfix const ccl_global int ccl_global float const int work_size
DeviceKernel