Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tile_processor_gpu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
tile_processor_gpu
Commits
597fd905
Commit
597fd905
authored
Aug 06, 2020
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more removing constants
parent
74a14618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
TileProcessor.cuh
src/TileProcessor.cuh
+6
-1
No files found.
src/TileProcessor.cuh
View file @
597fd905
...
@@ -832,6 +832,7 @@ __global__ void clear_texture_list(
...
@@ -832,6 +832,7 @@ __global__ void clear_texture_list(
__global__ void mark_texture_tiles(
__global__ void mark_texture_tiles(
struct tp_task * gpu_tasks,
struct tp_task * gpu_tasks,
int num_tiles, // number of tiles in task list
int num_tiles, // number of tiles in task list
int width, // number of tiles in a row
int * gpu_texture_indices); // packed tile + bits (now only (1 << 7)
int * gpu_texture_indices); // packed tile + bits (now only (1 << 7)
__global__ void mark_texture_neighbor_tiles(
__global__ void mark_texture_neighbor_tiles(
...
@@ -1305,6 +1306,7 @@ extern "C" __global__ void generate_RBGA(
...
@@ -1305,6 +1306,7 @@ extern "C" __global__ void generate_RBGA(
mark_texture_tiles <<<blocks,threads>>>(
mark_texture_tiles <<<blocks,threads>>>(
gpu_tasks,
gpu_tasks,
num_tiles, // number of tiles in task list
num_tiles, // number of tiles in task list
width, // number of tiles in a row
gpu_texture_indices); // packed tile + bits (now only (1 << 7)
gpu_texture_indices); // packed tile + bits (now only (1 << 7)
cudaDeviceSynchronize();
cudaDeviceSynchronize();
// mark n/e/s/w used tiles from gpu_texture_indices memory to gpu_tasks lower 4 bits
// mark n/e/s/w used tiles from gpu_texture_indices memory to gpu_tasks lower 4 bits
...
@@ -1482,6 +1484,7 @@ __global__ void prepare_texture_list(
...
@@ -1482,6 +1484,7 @@ __global__ void prepare_texture_list(
mark_texture_tiles <<<blocks,threads>>>(
mark_texture_tiles <<<blocks,threads>>>(
gpu_tasks,
gpu_tasks,
num_tiles, // number of tiles in task list
num_tiles, // number of tiles in task list
width,
gpu_texture_indices); // packed tile + bits (now only (1 << 7)
gpu_texture_indices); // packed tile + bits (now only (1 << 7)
cudaDeviceSynchronize();
cudaDeviceSynchronize();
// mark n/e/s/w used tiles from gpu_texture_indices memory to gpu_tasks lower 4 bits
// mark n/e/s/w used tiles from gpu_texture_indices memory to gpu_tasks lower 4 bits
...
@@ -1546,6 +1549,7 @@ __global__ void clear_texture_list(
...
@@ -1546,6 +1549,7 @@ __global__ void clear_texture_list(
*
*
* @param gpu_tasks array of per-tile tasks (struct tp_task)
* @param gpu_tasks array of per-tile tasks (struct tp_task)
* @param num_tiles number of tiles int gpu_tasks array prepared for processing
* @param num_tiles number of tiles int gpu_tasks array prepared for processing
* @param width number of tiles in a row
* @param gpu_texture_indices allocated array - 1 integer per tile to process
* @param gpu_texture_indices allocated array - 1 integer per tile to process
*/
*/
...
@@ -1553,6 +1557,7 @@ __global__ void clear_texture_list(
...
@@ -1553,6 +1557,7 @@ __global__ void clear_texture_list(
__global__ void mark_texture_tiles(
__global__ void mark_texture_tiles(
struct tp_task * gpu_tasks,
struct tp_task * gpu_tasks,
int num_tiles, // number of tiles in task list
int num_tiles, // number of tiles in task list
int width, // number of tiles in a row
int * gpu_texture_indices) // packed tile + bits (now only (1 << 7)
int * gpu_texture_indices) // packed tile + bits (now only (1 << 7)
{
{
int task_num = blockDim.x * blockIdx.x + threadIdx.x;
int task_num = blockDim.x * blockIdx.x + threadIdx.x;
...
@@ -1564,7 +1569,7 @@ __global__ void mark_texture_tiles(
...
@@ -1564,7 +1569,7 @@ __global__ void mark_texture_tiles(
return; // NOP tile
return; // NOP tile
}
}
int cxy = gpu_tasks[task_num].txy;
int cxy = gpu_tasks[task_num].txy;
*(gpu_texture_indices + (cxy & 0xffff) + (cxy >> 16) * TILESX) = 1;
*(gpu_texture_indices + (cxy & 0xffff) + (cxy >> 16) *
width) = 1; //
TILESX) = 1;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment