Skip to content
Snippets Groups Projects
Commit d7c845fc authored by Loris Lucido's avatar Loris Lucido
Browse files

BUGFIX: remove assert in device code

parent 81699245
No related branches found
No related tags found
No related merge requests found
Pipeline #23719 canceled
...@@ -18,7 +18,7 @@ __global__ void kernel_copy_tiles( ...@@ -18,7 +18,7 @@ __global__ void kernel_copy_tiles(
{ {
// Map blockIdx.x to polarizations // Map blockIdx.x to polarizations
unsigned int nr_polarizations = gridDim.x; unsigned int nr_polarizations = gridDim.x;
assert(nr_polarizations <= 4); //assert(nr_polarizations <= 4);
unsigned int pol = blockIdx.x; unsigned int pol = blockIdx.x;
// Tranpose the polarizations // Tranpose the polarizations
...@@ -95,7 +95,7 @@ __global__ void kernel_apply_phasor( ...@@ -95,7 +95,7 @@ __global__ void kernel_apply_phasor(
{ {
// Map blockIdx.x to polarizations // Map blockIdx.x to polarizations
unsigned int nr_polarizations = gridDim.x; unsigned int nr_polarizations = gridDim.x;
assert(nr_polarizations <= 4); //assert(nr_polarizations <= 4);
unsigned int pol = blockIdx.x; unsigned int pol = blockIdx.x;
// Map blockIdx.y to tile_index // Map blockIdx.y to tile_index
...@@ -219,7 +219,7 @@ __global__ void kernel_wtiles_to_grid( ...@@ -219,7 +219,7 @@ __global__ void kernel_wtiles_to_grid(
{ {
// Map blockIdx.x to polarizations // Map blockIdx.x to polarizations
unsigned int nr_polarizations = gridDim.x; unsigned int nr_polarizations = gridDim.x;
assert(nr_polarizations <= 4); //assert(nr_polarizations <= 4);
unsigned int pol = blockIdx.x; unsigned int pol = blockIdx.x;
// Map blockIdx.x to tiles // Map blockIdx.x to tiles
...@@ -338,7 +338,7 @@ __global__ void kernel_wtiles_from_grid( ...@@ -338,7 +338,7 @@ __global__ void kernel_wtiles_from_grid(
{ {
// Map blockIdx.x to polarizations // Map blockIdx.x to polarizations
unsigned int nr_polarizations = gridDim.x; unsigned int nr_polarizations = gridDim.x;
assert(nr_polarizations <= 4); //assert(nr_polarizations <= 4);
unsigned int pol = blockIdx.x; unsigned int pol = blockIdx.x;
// Map blockIdx.x to tiles // Map blockIdx.x to tiles
...@@ -396,7 +396,7 @@ __global__ void kernel_wtiles_to_patch( ...@@ -396,7 +396,7 @@ __global__ void kernel_wtiles_to_patch(
{ {
// Map blockIdx.x to polarization // Map blockIdx.x to polarization
unsigned int nr_polarizations = gridDim.x; unsigned int nr_polarizations = gridDim.x;
assert(nr_polarizations <= 4); //assert(nr_polarizations <= 4);
unsigned int pol = blockIdx.x; unsigned int pol = blockIdx.x;
// Map blockIdx.y to row of patch // Map blockIdx.y to row of patch
...@@ -471,7 +471,7 @@ __global__ void kernel_wtiles_from_patch( ...@@ -471,7 +471,7 @@ __global__ void kernel_wtiles_from_patch(
{ {
// Map blockIdx.x to polarization // Map blockIdx.x to polarization
unsigned int nr_polarizations = gridDim.x; unsigned int nr_polarizations = gridDim.x;
assert(nr_polarizations <= 4); //assert(nr_polarizations <= 4);
unsigned int pol = blockIdx.x; unsigned int pol = blockIdx.x;
// Map blockIdx.y to row of patch // Map blockIdx.y to row of patch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment