MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / main

Function main

tests/compiler/pcuda/kernel_launch.cpp:87–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87int main() {
88 // CHECK: 1
89 run<int>([](auto grid, auto block, auto* in, auto* out) {
90 pcudaLaunchKernelGGL(wrapper, grid, block, 0, 0, in, out);
91 });
92
93 // CHECK: 1
94 run<int>([](auto grid, auto block, auto* in, auto* out) {
95 pcudaParallelFor(grid, block, [=](){
96 wrapper(in, out);
97 });
98 });
99
100 // CHECK: 1
101 run<complex_struct>([](auto grid, auto block, auto* in, auto* out) {
102 pcudaLaunchKernelGGL(wrapper, grid, block, 0, 0, in, out);
103 });
104
105 // CHECK: 1
106 run<complex_struct>([](auto grid, auto block, auto* in, auto* out) {
107 pcudaParallelFor(grid, block, [=](){
108 wrapper(in, out);
109 });
110 });
111}

Callers

nothing calls this directly

Calls 2

pcudaParallelForFunction · 0.85
wrapperFunction · 0.85

Tested by

no test coverage detected