Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 14 Mar 2012 15:27:39 -0300
From: Claudio André <claudioandre.br@...il.com>
To: john-dev@...ts.openwall.com
Subject: New function in common-opencl

Hi, i need a new function to check if LWS is ok in the running hardware 
(need it to optimize).

I put in common-opencl (seems the best place to be). Any complains?

Complete patch attached if someone wants to see it.
----

cl_ulong get_local_memory_size(int dev_id)
{
         cl_ulong size;
         HANDLE_CLERROR(clGetDeviceInfo(devices[dev_id], 
CL_DEVICE_LOCAL_MEM_SIZE,
                 sizeof(cl_ulong), &size, 0),
                 "Error querying CL_DEVICE_LOCAL_MEM_SIZE");

         return size;
}


Claudio

View attachment "openCL_crypt512.patch" of type "text/x-patch" (24850 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ