Objet : Developers list for StarPU
Archives de la liste
- From: Samuel Thibault <samuel.thibault@ens-lyon.org>
- To: Sreeprakash S <sreeprakash.s@creativegenius.co.in>, starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] Build issues On Windows8.1
- Date: Tue, 24 Feb 2015 17:26:14 +0100
- List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
- List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>
Samuel Thibault, le Thu 19 Feb 2015 17:06:07 +0100, a écrit :
> Sreeprakash S, le Thu 19 Feb 2015 21:31:30 +0530, a écrit :
> > oops in _starpu_opencl_limit_gpu_mem_if_needed (../../src/drivers/opencl/
> > driver_
> > opencl.c:79) ((null)) ... <Invalid value> (-30)
> > Assertion failed: 0, file ../../include/starpu_opencl.h, line 43
> >
> > Can you advice me on what could be wrong here.
>
> Well, I don't know: the code just calls
>
> err = clGetDeviceInfo(devices[devid], CL_DEVICE_GLOBAL_MEM_SIZE,
> sizeof(totalGlobalMem), &totalGlobalMem, NULL);
> if (err != CL_SUCCESS)
> STARPU_OPENCL_REPORT_ERROR(err);
>
> so it's nothing fancy, just getting the global memory size, but OpenCL
> returns an error.
Could you try the attached patch?
Samuel
Index: src/drivers/opencl/driver_opencl.c
===================================================================
--- src/drivers/opencl/driver_opencl.c (révision 14556)
+++ src/drivers/opencl/driver_opencl.c (copie de travail)
@@ -82,9 +82,11 @@
#elif defined(STARPU_USE_OPENCL)
/* Request the size of the current device's memory */
cl_int err;
- err = clGetDeviceInfo(devices[devid], CL_DEVICE_GLOBAL_MEM_SIZE,
sizeof(totalGlobalMem), &totalGlobalMem, NULL);
+ cl_ulong size;
+ err = clGetDeviceInfo(devices[devid], CL_DEVICE_GLOBAL_MEM_SIZE,
sizeof(size), &size, NULL);
if (STARPU_UNLIKELY(err != CL_SUCCESS))
STARPU_OPENCL_REPORT_ERROR(err);
+ totalGlobalMem = size;
#endif
limit = starpu_get_env_number("STARPU_LIMIT_OPENCL_MEM");
- Re: [Starpu-devel] Build issues On Windows8.1, (suite)
- Re: [Starpu-devel] Build issues On Windows8.1, Sreeprakash S, 18/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 18/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 18/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Sreeprakash S, 18/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Sreeprakash S, 19/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 19/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 19/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Sreeprakash S, 19/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 19/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Sreeprakash S, 20/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 24/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 25/02/2015
- Re: [Starpu-devel] Build issues On Windows8.1, Samuel Thibault, 17/02/2015
Archives gérées par MHonArc 2.6.19+.