File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
features/feature_case/thrust Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
13
13
__global__ void complex_math_kernel (float * res)
14
14
{
15
- auto c = thrust::polar (11.48569 , 1.33698 );
15
+ auto c = thrust::polar (11 .48569f , 1 .33698f );
16
16
17
17
c = thrust::log10 (c);
18
18
c = thrust::sqrt (c);
19
- c = thrust::pow (1.0 , c);
20
- c = thrust::pow (c, 1.0 );
19
+ c = thrust::pow (1 .0f , c);
20
+ c = thrust::pow (c, 1 .0f );
21
21
c = thrust::pow (c, c);
22
22
c = thrust::sin (c);
23
23
c = thrust::cos (c);
@@ -40,12 +40,12 @@ __global__ void complex_math_kernel(float * res)
40
40
41
41
void complex_math (float * res)
42
42
{
43
- auto c = thrust::polar (11.48569 , 1.33698 );
43
+ auto c = thrust::polar (11 .48569f , 1 .33698f );
44
44
45
45
c = thrust::log10 (c);
46
46
c = thrust::sqrt (c);
47
- c = thrust::pow (1.0 , c);
48
- c = thrust::pow (c, 1.0 );
47
+ c = thrust::pow (1 .0f , c);
48
+ c = thrust::pow (c, 1 .0f );
49
49
c = thrust::pow (c, c);
50
50
c = thrust::sin (c);
51
51
c = thrust::cos (c);
You can’t perform that action at this time.
0 commit comments