|
Message-ID: <CAGcw5iTW4a8yj9jn2AnuOpb2gb6RcVUgJcLBxk=X-LRBBbCerQ@mail.gmail.com> Date: Sat, 8 Jun 2013 13:20:40 +0200 From: Marc Brinkmann <marc.brinkmann@...il.com> To: john-users@...ts.openwall.com, NeonFlash <psykosonik_frequenz@...oo.com> Subject: Re: Unable to compile JtR with OpenCL on Ubuntu 12.04 i had no problem, using Catalyst 13.4 Maybe you try updating this as well :) http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx 2013/6/8 NeonFlash <psykosonik_frequenz@...oo.com> > I have installed AMD APP SDK as well from here: > > > http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/ > > 64-bit version: AMD-APP-SDK-v2.8-lnx64.tgz > > sudo ./Install-AMD-APP.sh > > even after this, locate CL/cl.h does not show results and no new include > directories for OpenCL created. > > > > ________________________________ > From: NeonFlash <psykosonik_frequenz@...oo.com> > To: "john-users@...ts.openwall.com" <john-users@...ts.openwall.com> > Sent: Saturday, June 8, 2013 6:23 AM > Subject: Re: [john-users] Unable to compile JtR with OpenCL on Ubuntu 12.04 > > > Please note a small correction in my previous mail. > > It is unable to locate the CL/cl.h header file which is referenced from > the common-opencl.h present in JtR's src folder. > > output of the following command is blank. It is unable to find the > includes directory. > > > sudo updatedb && locate CL/cl.h > > I have the Catalyst 13.1 drivers installed from ATI's official site. > > fglrxinfo > > display: :0 screen: 0 > OpenGL vendor string: Advanced Micro Devices, Inc. > OpenGL renderer string: ATI Radeon HD 5800 Series > OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012 > > > Thanks. > > > > ________________________________ > From: NeonFlash <psykosonik_frequenz@...oo.com> > To: "john-users@...ts.openwall.com" <john-users@...ts.openwall.com> > Sent: Saturday, June 8, 2013 6:09 AM > Subject: [john-users] Unable to compile JtR with OpenCL on Ubuntu 12.04 > > > Hi, > > I have previously successfully installed JtR 1.7.9 jumbo version with > OpenCL support on OpenSUSE. > > It worked properly. > > Now, I am trying to install it on Ubuntu 12.04 x64 version. I have the ATI > propreitary drivers installed and they are working. Other GPGPU > applications are able to interact with it and work. > > Please find the details below. > > location of libOpenCL.so and *cl.h* > > locate OpenCL > > /usr/lib/libOpenCL.so.1 > /usr/lib/i386-linux-gnu/libOpenCL.so.1 > > locate *cl.h* > > /home/Neon/GPU Bruteforcers/JtR/john-1.7.9-jumbo-7/src/common-opencl.h > > echo $ATISTREAMSDKROOT > > /usr/lib > > Note: I did not find any includes directory in the path of OpenCL. > > Now, I compile JtR as follows: > > make linux-x86-opencl > > The error comes here: > > > gcc -c -Wall -O2 -fomit-frame-pointer -Wdeclaration-after-statement > -I/usr/local/include -I/usr/local/cuda/include -DHAVE_CRYPT > -DCL_VERSION_1_0 -DHAVE_DL -DUSING_ICC_S_FILE -funroll-loops rar_fmt.c > > > In file included from rar_fmt.c:88:0: > common-opencl.h:8:19: fatal error: CL/cl.h: No such file or directory > compilation terminated. > > I checked the code of rar_fmt.c (line 88) and it has: > > > cat -n rar_fmt.c | more > > 85 #include "johnswap.h" > 86 #include "unrar.h" > 87 #ifdef CL_VERSION_1_0 > 88 #include "common-opencl.h" <--- unable to locate this header > file. > > common-opencl.h header file is present in the source directory of JtR > itself (current directory from where I am compiling) > > in common-opencl.h at line 8, I noticed that it is trying to include the > header file, CL/cl.h and is unable to locate it. > > cat -n common-opencl.h | more > > 8 #include <CL/cl.h> > 9 #include <CL/cl_ext.h> > > I also noticed that while compiling, it is using the includes directory as > /usr/local/cude/include in the CCFLAGS passed to gcc. > > even though I have the environment variable, ATISTREAMSDKROOT, it is using > the path of cuda. > > I checked the Makefile and the following section is used to set the value > of OCLROOT > > ifdef NVIDIA_CUDA > OCLROOT = $(NVIDIA_CUDA) > else > OCLROOT = /usr/local/cuda > endif > ifdef AMDAPPSDKROOT > AMDAPP = -DAMDAPPSDK > OCLROOT = $(AMDAPPSDKROOT) > endif > ifdef ATISTREAMSDKROOT > AMDAPP = -DAMDAPPSDK > OCLROOT = $(ATISTREAMSDKROOT) > endif > ifdef HAVE_NSS > NSS_LDFLAGS = `pkg-config --libs nss` > endif > > I do not have the NVIDIA_CUDA environment variable set. Only > ATISTREAMSDKROOT environment variable is set. > > I have tried resetting the environment variables, followed by make clean > and then again tried compiling, but it keeps using the includes directory > corresponding to CUDA (/usr/local/include/cuda) > > Also, I am not sure if I am setting the value of ATISTREAMSDKROOT > environment varible correctly. In my case, I found libOpenCL.so in /usr/lib > and /usr/lib/i386-linux-gnu/. I have tried setting the environment variable > to both of these values, but it does not work in both the cases. > > Please let me know if more details are required to troubleshoot. > > Thanks. >
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.