Skip to content

Commit

Permalink
Add context_module argument back (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard authored Sep 17, 2024
1 parent 695bdb6 commit 19e1617
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ext/devices/cuda/function.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function ComputableDAGs.kernel(::Type{CUDAGPU}, graph::DAG, instance)
function ComputableDAGs.kernel(
::Type{CUDAGPU}, graph::DAG, instance, context_module::Module
)
machine = cpu_st()
tape = ComputableDAGs.gen_tape(graph, instance, machine, context_module)

Expand Down
4 changes: 3 additions & 1 deletion ext/devices/rocm/function.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function ComputableDAGs.kernel(::Type{ROCmGPU}, graph::DAG, instance)
function ComputableDAGs.kernel(
::Type{ROCmGPU}, graph::DAG, instance, context_module::Module
)
machine = cpu_st()
tape = ComputableDAGs.gen_tape(graph, instance, machine, context_module)

Expand Down

0 comments on commit 19e1617

Please sign in to comment.