diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-15 08:54:44 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-15 08:54:44 +0200 |
commit | 7d1685383f561d3537ca3973f10bb37393fd438e (patch) | |
tree | 6442a0ac1cd2cf754bb2fca21cb286ed5e33f8de /SEL/baselines | |
parent | 005151b5835995439d7f114e2e68ae83495926d7 (diff) |
SEL: Address compiler warnings
Diffstat (limited to 'SEL/baselines')
-rw-r--r-- | SEL/baselines/cpu/app_baseline.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/SEL/baselines/cpu/app_baseline.c b/SEL/baselines/cpu/app_baseline.c index f9ace3f..c6f84f4 100644 --- a/SEL/baselines/cpu/app_baseline.c +++ b/SEL/baselines/cpu/app_baseline.c @@ -33,6 +33,8 @@ int numa_node_cpu = -1; #define T uint64_t #endif +volatile int total_count; + // Params --------------------------------------------------------------------- typedef struct Params { char* dpu_type; @@ -58,7 +60,7 @@ bool pred(const T x){ } -void *create_test_file(unsigned int nr_elements) { +void create_test_file(unsigned int nr_elements) { //srand(0); #if NUMA @@ -88,7 +90,7 @@ void *create_test_file(unsigned int nr_elements) { numa_free_nodemask(bitmask_all); #endif - for (int i = 0; i < nr_elements; i++) { + for (unsigned int i = 0; i < nr_elements; i++) { //A[i] = (unsigned int) (rand()); A[i] = i+1; } @@ -208,7 +210,6 @@ int main(int argc, char **argv) { input_params(argc, argv); const unsigned int file_size = p.input_size; - int total_count; // Create an input file with arbitrary data. create_test_file(file_size); |