Skip to content

Commit 61fa034

Browse files
committed
Always insert set_host_dirty(), even is there is no GPU target. This allows mixing CPU-only and GPU-compatible pipelines.
1 parent d38dcf0 commit 61fa034

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Lower.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ void lower_impl(const vector<Function> &output_funcs,
331331
debug(1) << "Selecting a GPU API for extern stages...\n";
332332
s = select_gpu_api(s, t);
333333
log("Lowering after selecting a GPU API for extern stages:", s);
334+
} else {
335+
debug(1) << "Injecting host-dirty marking...\n";
336+
s = inject_host_dev_buffer_copies(s, t);
337+
log("Lowering after injecting host-dirty marking:", s);
334338
}
335339

336340
debug(1) << "Simplifying...\n";

0 commit comments

Comments
 (0)