Skip to content
Snippets Groups Projects
Commit f004b8c1 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Attempt to fix windows build

parent 57a7fbd4
No related branches found
No related tags found
1 merge request!347Feature buckets experiment
Pipeline #30258 passed
This commit is part of merge request !347. Comments created here will be created in the context of that merge request.
...@@ -70,7 +70,7 @@ struct SalientGradient { ...@@ -70,7 +70,7 @@ struct SalientGradient {
} }
__device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) { __device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) {
static const float PI = 3.14f; static constexpr float PI = 3.14f;
static constexpr float PI2 = PI/2.0f; static constexpr float PI2 = PI/2.0f;
for (int y=thread.y; y<size.y; y+=stride.y) { for (int y=thread.y; y<size.y; y+=stride.y) {
...@@ -177,7 +177,7 @@ struct SalientGradientGrouped { ...@@ -177,7 +177,7 @@ struct SalientGradientGrouped {
} }
__device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) { __device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) {
static const float PI = 3.14f; static constexpr float PI = 3.14f;
static constexpr float PI2 = PI/2.0f; static constexpr float PI2 = PI/2.0f;
for (int y=thread.y; y<size.y; y+=stride.y) { for (int y=thread.y; y<size.y; y+=stride.y) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment