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 | |
parent | 005151b5835995439d7f114e2e68ae83495926d7 (diff) |
SEL: Address compiler warnings
Diffstat (limited to 'SEL')
-rw-r--r-- | SEL/baselines/cpu/app_baseline.c | 7 | ||||
-rwxr-xr-x | SEL/dimes-hetsim-nmc.sh | 1 |
2 files changed, 5 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); diff --git a/SEL/dimes-hetsim-nmc.sh b/SEL/dimes-hetsim-nmc.sh index e6752a6..8356b00 100755 --- a/SEL/dimes-hetsim-nmc.sh +++ b/SEL/dimes-hetsim-nmc.sh @@ -4,6 +4,7 @@ mkdir -p log/$(hostname) baselines/cpu/log/$(hostname) fn=log/$(hostname)/$(date +%Y%m%d) # 2^28 elem == 2 GiB data (upstream version uses 1.875 GiB) +# upstrem DPU and upstream CPU use uint64_t run_benchmark_nmc() { local "$@" |