Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130426220747.QADWK.122416.imail@eastrmwml205>
Date: Fri, 26 Apr 2013 22:07:47 -0400
From:  <jfoug@....net>
To: john-users@...ts.openwall.com
Subject: Fwd: 'close' to getting opencl working

I have hit magnum up with this (offlist), and am not getting things to work.  I thought I would bring this to the entire list, and beg for knowledge ;)

I have a VirutualBox VM with 12.10 ubuntu x64.  I have given it 6 cores, 100%, with 2gb memory (I could up that if needed). I just installed the latest CPU OpenCL version, from the intel site.  I have gotten a test box OpenCL program working (was in my original post to magnum.  I can not get any tests or runs to see any OpenCL devices. But the -list=opencl-devices does show it is installed.  Things built/linked perfectly.

Is there anyone out there that can help?   This is the first that I have installed or worked with any of the GPU inside of JtR, so it is new to me.

Here is some output of the OpenCL build:

$ ../run/john -list=opencl-devices
Platform #0 name: Intel(R) OpenCL
Platform version: OpenCL 1.2 LINUX
	Device #0 (0) name:	Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
	Device vendor:		Intel(R) Corporation
	Device type:		CPU (LE)
	Device version:		OpenCL 1.2 (Build 56860)
	Driver version:		1.2
	Global Memory:		1.0 GB
	Global Memory Cache:	256.2 KB
	Local Memory:		32.0 KB (Global)
	Max memory alloc. size:	500.5 MB
	Max clock (MHz) :	3400
	Max Work Group Size:	1024
	Parallel compute cores:	6

$ ../run/john -device=0 -test=0
No OpenCL devices found

Jim.


---- magnum <john.magnum@...hmail.com> wrote: 
> John tries to find your "first GPU" so maybe you need to say -device=0 or -device=cpu. But I do not really think that's it. Maybe try "john --list=opencl-devices".
> 
> magnum
> 
> 
> On 27 Apr, 2013, at 0:34 , jfoug <jfoug@....net> wrote:
> 
> >  
> > Getting very close to CPU openCL working.  It now builds at least, but when run, I get:   "No OpenCL devices found" and jtr exits.
> >  
> > I can run this program:
> >  
> > #include <iostream> 
> >  #include <CL/cl.hpp> 
> >  #include <boost/foreach.hpp>
> >  
> >  int main(int, char**) { 
> >      std::vector<cl::Platform> platforms; 
> >      cl::Platform::get(&platforms); 
> >      BOOST_FOREACH(cl::Platform platform, platforms){ 
> >          std::cout << "Platform: " <<platform.getInfo<CL_PLATFORM_NAME>() << std::endl; 
> >          std::vector<cl::Device> devices; 
> >          platform.getDevices(CL_DEVICE_TYPE_GPU |CL_DEVICE_TYPE_CPU, &devices); 
> >          BOOST_FOREACH(cl::Device device, devices){ 
> >              std::cout << "Device: " <<device.getInfo<CL_DEVICE_TYPE>(); 
> >              std::cout << " (" << CL_DEVICE_TYPE_GPU<< " means GPU, " << CL_DEVICE_TYPE_CPU << " means CPU)" << std::endl; 
> >          } 
> >      }
> >  } 
> >  
> > And get this output:
> >  
> > $ g++ test.C -lOpenCL -o opencl && ./opencl
> > Platform: Intel(R) OpenCL
> > Device: 2 (4 means GPU, 2 means CPU)
> >  
> >  
> > Help .....
> >  
> >  
> 
> 

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.