Skip to content

Commit

Permalink
fix minor warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed Jan 3, 2025
1 parent 034d5a1 commit 7e61b33
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions socl/src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void command_completed_task_callback(void *arg)
*/
starpu_task task_create(cl_command_type typ)
{
(void)typ;
struct starpu_task * task;

/* Create StarPU task */
Expand Down
7 changes: 4 additions & 3 deletions src/debug/traces/starpu_fxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ static void worker_pop_state(double time, const char *prefix, long unsigned int
if (!out_paje_file)
return;
#ifdef STARPU_HAVE_POTI
(void)comment;
char container[STARPU_POTI_STR_LEN];
worker_container_alias(container, STARPU_POTI_STR_LEN, prefix, workerid);
poti_PopState(time, container, "WS");
Expand Down Expand Up @@ -1868,7 +1869,7 @@ static void handle_codelet_details(struct fxt_ev_native *ev, struct starpu_fxt_o
long unsigned int tid = ev->param[7];

struct _thread_info *thread_info = get_thread_info(tid, worker, 0);
char parameters[256];
char parameters[STARPU_POTI_STR_LEN];
size_t eaten = 0;
if (!thread_info->codelet_parameter)
snprintf(parameters, sizeof(parameters) - 1, "nodata");
Expand Down Expand Up @@ -1936,7 +1937,7 @@ static void handle_codelet_details(struct fxt_ev_native *ev, struct starpu_fxt_o
poti_SetState(thread_info->last_codelet_start, container, typectx, thread_info->symbol);

char name[STARPU_POTI_STR_LEN];
snprintf(name, sizeof(name), "%s", thread_info->symbol);
snprintf(name, sizeof(name), "%.*s", STARPU_POTI_STR_LEN-1, thread_info->symbol);

char size_str[STARPU_POTI_STR_LEN];
char parameters_str[STARPU_POTI_STR_LEN];
Expand Down Expand Up @@ -4418,7 +4419,7 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
_starpu_fxt_process_computations(options);
}

unsigned i;
unsigned i=0;
if (!options->no_flops)
{

Expand Down
1 change: 1 addition & 0 deletions src/debug/traces/starpu_fxt_mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ static void display_all_transfers_from_trace(FILE *out_paje_file, FILE *out_comm
current_out_bandwidth[match->src] -= match->bandwidth;
current_in_bandwidth[match->dst] -= match->bandwidth;
#ifdef STARPU_HAVE_POTI
(void)out_paje_file;
snprintf(mpi_container, sizeof(mpi_container), "%d_mpict", match->src);
poti_SetVariable(match->date, mpi_container, "bwo_mpi", current_out_bandwidth[match->src]);
snprintf(mpi_container, sizeof(mpi_container), "%d_mpict", match->dst);
Expand Down
2 changes: 2 additions & 0 deletions src/drivers/opencl/driver_opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ _starpu_opencl_unmap_ram(uintptr_t src STARPU_ATTRIBUTE_UNUSED, size_t src_offse
return 0;
}

#if 0
static int
_starpu_opencl_update_opencl_map(uintptr_t src, size_t src_offset, unsigned src_node, uintptr_t dst, size_t dst_offset, unsigned dst_node, size_t size)
{
Expand Down Expand Up @@ -1235,6 +1236,7 @@ _starpu_opencl_update_opencl_map(uintptr_t src, size_t src_offset, unsigned src_

return 0;
}
#endif

static int
_starpu_opencl_update_cpu_map(uintptr_t src, size_t src_offset, unsigned src_node, uintptr_t dst, size_t dst_offset, unsigned dst_node, size_t size)
Expand Down

0 comments on commit 7e61b33

Please sign in to comment.