1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-29 03:18:30 +00:00

Upgrade AMD Display Library SDK from 8.0 to 9.0

This commit is contained in:
Gabriele 'matrix' Gristina 2016-01-24 16:39:51 +01:00
parent 9c89b58f76
commit 71b09e55f2
2 changed files with 16 additions and 23 deletions

View File

@ -1,7 +1,7 @@
oclHashcat build documentation oclHashcat build documentation
= =
# Revision: # Revision:
* 1.1 * 1.2
# Authors: # Authors:
* Gabriele Gristina <<matrix@hashcat.net>> * Gabriele Gristina <<matrix@hashcat.net>>
@ -11,7 +11,7 @@ oclHashcat build documentation
To compile **oclHashcat** the following third party libraries are required: To compile **oclHashcat** the following third party libraries are required:
- ADL_SDK v8.0 ( http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/ ) - ADL_SDK v9.0 ( http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/ )
- NVAPI R352 ( https://developer.nvidia.com/nvapi ) - NVAPI R352 ( https://developer.nvidia.com/nvapi )
- GDK v352_55 ( https://developer.nvidia.com/gpu-deployment-kit ) - GDK v352_55 ( https://developer.nvidia.com/gpu-deployment-kit )
@ -19,7 +19,7 @@ The next thing to do is download all the third party libraries listed above and
The following files are needed inside the *deps/tmp* directory: The following files are needed inside the *deps/tmp* directory:
ADL_SDK8.zip ADL_SDK9.zip
R352-developer.zip R352-developer.zip
gdk_linux_amd64_352_55_release.run gdk_linux_amd64_352_55_release.run
@ -29,11 +29,11 @@ First get a copy of the **oclHashcat** repository
```sh ```sh
$ git clone https://github.com/hashcat/oclHashcat.git $ git clone https://github.com/hashcat/oclHashcat.git
``` ```
Install the dependencies Install the dependencies (root permission needed)
```sh ```sh
$ cd oclHashcat $ cd oclHashcat
$ sudo ./tools/deps.sh $ ./tools/deps.sh
``` ```
Run "make" Run "make"
@ -49,6 +49,11 @@ $ make install
``` ```
Useful tricks: Useful tricks:
- build native linux/osx binaries
```sh
$ make
```
- build all binaries (see Note1 and Note2): - build all binaries (see Note1 and Note2):
```sh ```sh
$ make binaries $ make binaries

View File

@ -3,9 +3,9 @@
# Revision: 1.03 # Revision: 1.03
## global vars ## global vars
DEPS="make gcc g++ gcc-multilib g++-multilib libc6-dev-i386 mingw-w64 build-essential unzip opencl-headers ocl-icd-libopencl1" DEPS="make gcc g++ gcc-multilib g++-multilib libc6-dev-i386 mingw-w64 build-essential unzip opencl-headers ocl-icd-libopencl1 dos2unix"
DEPS_AMD_DEV="ocl-icd-opencl-dev" DEPS_AMD_DEV="ocl-icd-opencl-dev"
DOWNLOAD_DEPS="ADL_SDK8.zip R352-developer.zip gdk_linux_amd64_352_55_release.run" DOWNLOAD_DEPS="ADL_SDK9.zip R352-developer.zip gdk_linux_amd64_352_55_release.run"
## enter the deps directory ## enter the deps directory
cur_directory=$(dirname ${0}) cur_directory=$(dirname ${0})
@ -45,13 +45,7 @@ for pkg in ${DEPS}; do
# check if the package is already installed # check if the package is already installed
dpkg -s ${pkg} &>/dev/null dpkg -s ${pkg} &>/dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
## root check sudo apt-get -y install ${pkg}
if [ $(id -u) -ne 0 ]; then
echo "! Must be root to install the required package '${pkg}' with apt-get"
exit 1
fi
apt-get -y install ${pkg}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "! failed to install ${pkg}" echo "! failed to install ${pkg}"
exit 1 exit 1
@ -60,7 +54,7 @@ for pkg in ${DEPS}; do
done done
## extract ADL SDK ## extract ADL SDK
unzip ADL_SDK8.zip -d ${deps_dir}/adl-sdk-8 unzip ADL_SDK9.zip -d ${deps_dir}/adl-sdk-9
ret=$? ret=$?
if [[ ${ret} -ne 0 ]] && [[ ${ret} -ne 1 ]]; then if [[ ${ret} -ne 0 ]] && [[ ${ret} -ne 1 ]]; then
@ -68,7 +62,7 @@ if [[ ${ret} -ne 0 ]] && [[ ${ret} -ne 1 ]]; then
exit 1 exit 1
fi fi
rm -rf ${deps_dir}/adl-sdk && ln -s ${deps_dir}/adl-sdk-8 ${deps_dir}/adl-sdk rm -rf ${deps_dir}/adl-sdk && ln -s ${deps_dir}/adl-sdk-9 ${deps_dir}/adl-sdk
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "! failed to setup ADL SDK link" echo "! failed to setup ADL SDK link"
@ -98,13 +92,7 @@ fi
ls /usr/lib/*/libOpenCL.so &> /dev/null ls /usr/lib/*/libOpenCL.so &> /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
## root check sudo apt-get -y install ${DEPS_AMD_DEV}
if [ $(id -u) -ne 0 ]; then
echo "! Must be root to install '${DEPS_AMD_DEV}'"
exit 1
fi
apt-get -y install ${DEPS_AMD_DEV}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "! failed to install ${DEPS_AMD_DEV}" echo "! failed to install ${DEPS_AMD_DEV}"
exit 1 exit 1