/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
- * Copyright (C) 2018-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
+ * Copyright (C) 2018-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
static void task_call_variants(void (*fn)(void*, ...), void *buffers[], void *args)
{
void **arg_ptrs = args;
- int nargs = arg_ptrs[1];
+ intptr_t nargs = (intptr_t) arg_ptrs[1];
// TODO: asm it, as we could do it nicely in a loop
switch (nargs)
{
size_t sizeof_kmp_task_t,
size_t sizeof_shareds,
kmp_routine_entry_t task_entry,
- kmp_int32 nvariants)
+ kmp_int32 nvariants STARPU_ATTRIBUTE_UNUSED)
{
kmp_task_t *task = __kmpc_omp_task_alloc(loc_ref, gtid, flags, sizeof_kmp_task_t, sizeof_shareds, task_entry);
#ifdef _STARPU_OPENMP_LLVM_VARIANT
/* This is freed in starpu_omp_task_region, as attr.cl_arg_free is set to true*/
void **arg_ptrs = calloc(4, sizeof(void*));
arg_ptrs[0] = new_task;
- arg_ptrs[1] = ndeps + ndeps_noalias;
+ arg_ptrs[1] = (void*) (intptr_t) (ndeps + ndeps_noalias);
#ifdef _STARPU_OPENMP_LLVM_VARIANT
if (new_task->nvariants == 0)