Skip to content

Commit

Permalink
save progress
Browse files Browse the repository at this point in the history
  • Loading branch information
clamchowder committed Feb 16, 2024
1 parent c2d7b40 commit ef03a8b
Show file tree
Hide file tree
Showing 3 changed files with 732 additions and 732 deletions.
4 changes: 2 additions & 2 deletions GpuMemLatency/latency_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ float latency_test(cl_context context,
cl_kernel kernel,
uint32_t list_size,
uint32_t chase_iterations,
short sattolo,
short uniform,
int threads,
int local_size,
int wave_size,
Expand All @@ -29,7 +29,7 @@ float latency_test(cl_context context,
// Fill pattern arr
uint32_t* thread_start = (uint32_t*)malloc(sizeof(uint32_t) * (global_item_size));
memset(A, 0, sizeof(uint32_t) * list_size);
if (threads < 2) {
if (threads < 2 || uniform) {
FillPatternArr(A, list_size, CACHELINE_SIZE);
thread_start[0] = 0;
}
Expand Down
Loading

0 comments on commit ef03a8b

Please sign in to comment.