Debian Codegraph @

Tests/Cuda/Complex/file2.cu

raw
1
2 #include "file2.h"
3
4 result_type __device__ file1_func(int x);
5
6 result_type_dynamic __device__ file2_func(int x)
7 {
8 if (x != 42) {
9 result_type const r = file1_func(x);
10 result_type_dynamic const rd{ r.input, r.sum, true };
11 return rd;
12 } else {
13 result_type_dynamic const rd{ x, x * x * x, false };
14 return rd;
15 }
16 }