Objet : Developers list for StarPU
Archives de la liste
- From: Samuel Thibault <samuel.thibault@inria.fr>
- To: Rafal Brzegowy <rafal.brzegowy@yahoo.com>
- Cc: starpu-devel@inria.fr
- Subject: Re: [starpu-devel] [Starpu-devel] StarPU and mingw64 error
- Date: Mon, 14 Feb 2022 14:52:11 +0100
- Organization: I am not organized
Hello,
Could you try the attached patch?
Samuel
Rafal Brzegowy, le mar. 08 févr. 2022 08:30:48 +0000, a ecrit:
> This error occurs for mingw32 with gcc compiler.
>
> W wtorek, 8 lutego 2022, 09:28:33 CET, Samuel Thibault
> <samuel.thibault@inria.fr> napisał(-a):
>
>
> Rafal Brzegowy, le mar. 08 févr. 2022 08:24:09 +0000, a ecrit:
> > Hi,
> >
> > ../../../starpu-1.3.9/socl/src/cl_enqueuemarkerwithwaitlist.c:21:1: error:
> > conflicting types for 'soclEnqueueMarkerWithWaitList'; have 'cl_int(struct
> > _cl_command_queue *, cl_uint, struct _cl_event * const*, struct _cl_event
> **)'
> > {aka 'int(struct _cl_command_queue *, unsigned int, struct _cl_event *
> const*,
> > struct _cl_event **)'}
> > 21 | soclEnqueueMarkerWithWaitList(cl_command_queue cq,
> > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > In file included from ../../../starpu-1.3.9/socl/src/
> > cl_enqueuemarkerwithwaitlist.c:17:
> > ../../../starpu-1.3.9/socl/src/socl.h:752:28: note: previous declaration
> > of
> > 'soclEnqueueMarkerWithWaitList' with type 'cl_int(struct
> > _cl_command_queue *,
> > cl_uint, struct _cl_event * const*, struct _cl_event **)' {aka
> > 'int(struct
> > _cl_command_queue *, unsigned int, struct _cl_event * const*, struct
> _cl_event
> > **)'}
> > 752 | extern CL_API_ENTRY cl_int soclEnqueueMarkerWithWaitList
> > (cl_command_queue /* command_queue */,
> > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> I used diff to be sure. It's letter-for-letter the same type...
>
> You are not building with a C++ compiler, right?
diff --git a/socl/src/socl.h b/socl/src/socl.h
index e9c68b8e48..d481136664 100644
--- a/socl/src/socl.h
+++ b/socl/src/socl.h
@@ -749,17 +749,19 @@ soclEnqueueWaitForEvents(cl_command_queue /*
command_queue */,
extern CL_API_ENTRY cl_int CL_API_CALL
soclEnqueueBarrier(cl_command_queue /* command_queue */)
CL_API_SUFFIX__VERSION_1_0;
-extern CL_API_ENTRY cl_int soclEnqueueMarkerWithWaitList(cl_command_queue /*
command_queue */,
- cl_uint /*
num_events_in_wait_list */,
- const cl_event * /*
event_wait_list */,
- cl_event * /*
event */
- )
CL_API_SUFFIX__VERSION_1_2;
-
-extern CL_API_ENTRY cl_int soclEnqueueBarrierWithWaitList(cl_command_queue
/* command_queue */,
- cl_uint
/* num_events_in_wait_list */,
- const cl_event *
/* event_wait_list */,
- cl_event *
/* event */
- )
CL_API_SUFFIX__VERSION_1_2;
+extern CL_API_ENTRY cl_int CL_API_CALL
+soclEnqueueMarkerWithWaitList(cl_command_queue /* command_queue */,
+ cl_uint /* num_events_in_wait_list */,
+ const cl_event * /* event_wait_list */,
+ cl_event * /* event */
+ ) CL_API_SUFFIX__VERSION_1_2;
+
+extern CL_API_ENTRY cl_int CL_API_CALL
+soclEnqueueBarrierWithWaitList(cl_command_queue /* command_queue */,
+ cl_uint /* num_events_in_wait_list
*/,
+ const cl_event * /* event_wait_list */,
+ cl_event * /* event */
+ ) CL_API_SUFFIX__VERSION_1_2;
/* Extension function access
*
- Re: [starpu-devel] [Starpu-devel] StarPU and mingw64 error, Samuel Thibault, 14/02/2022
- Re: [starpu-devel] [Starpu-devel] StarPU and mingw64 error, Rafal Brzegowy, 15/02/2022
- Re: [starpu-devel] [Starpu-devel] StarPU and mingw64 error, Samuel Thibault, 15/02/2022
- Re: [starpu-devel] [Starpu-devel] StarPU and mingw64 error, Rafal Brzegowy, 15/02/2022
Archives gérées par MHonArc 2.6.19+.