Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F60E31B.2090405@gmail.com>
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

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.