Skip to content

Commit

Permalink
Update amdgpu device to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcao3 committed Dec 30, 2022
1 parent 4223bf3 commit 3e2b816
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions taichi/rhi/amdgpu/amdgpu_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,16 @@ namespace taichi {
namespace lang {
namespace amdgpu {

class AmdgpuResourceBinder : public ResourceBinder {
public:
~AmdgpuResourceBinder() override {
}

void rw_buffer(uint32_t set,
uint32_t binding,
DevicePtr ptr,
size_t size) override{TI_NOT_IMPLEMENTED};
void rw_buffer(uint32_t set,
uint32_t binding,
DeviceAllocation alloc) override{TI_NOT_IMPLEMENTED};

void buffer(uint32_t set,
uint32_t binding,
DevicePtr ptr,
size_t size) override{TI_NOT_IMPLEMENTED};
void buffer(uint32_t set, uint32_t binding, DeviceAllocation alloc) override{
TI_NOT_IMPLEMENTED};
};

class AmdgpuPipeline : public Pipeline {
public:
~AmdgpuPipeline() override {
}

ResourceBinder *resource_binder() override{TI_NOT_IMPLEMENTED};
};

class AmdgpuCommandList : public CommandList {
public:
~AmdgpuCommandList() override {
}

void bind_pipeline(Pipeline *p) override{TI_NOT_IMPLEMENTED};
void bind_resources(ResourceBinder *binder) override{TI_NOT_IMPLEMENTED};
RhiResult bind_shader_resources(ShaderResourceSet *res,
int set_index = 0) final{TI_NOT_IMPLEMENTED};
RhiResult bind_raster_resources(RasterResources *res) final{
TI_NOT_IMPLEMENTED};
void buffer_barrier(DevicePtr ptr, size_t size) override{TI_NOT_IMPLEMENTED};
void buffer_barrier(DeviceAllocation alloc) override{TI_NOT_IMPLEMENTED};
void memory_barrier() override{TI_NOT_IMPLEMENTED};
Expand Down Expand Up @@ -95,6 +69,8 @@ class AmdgpuDevice : public LlvmDevice {
const LlvmRuntimeAllocParams &params) override;
void dealloc_memory(DeviceAllocation handle) override;

ShaderResourceSet *create_resource_set() final{TI_NOT_IMPLEMENTED};

std::unique_ptr<Pipeline> create_pipeline(
const PipelineSourceDesc &src,
std::string name = "Pipeline") override{TI_NOT_IMPLEMENTED};
Expand Down

0 comments on commit 3e2b816

Please sign in to comment.