It is possible to use a apu and a discrete nvidia together
#5
(04-05-2016, 09:19 PM)epixoip Wrote: Well first of all you never needed to have (nor should you have had) AMD APP SDK or CUDA installed. Neither are necessary or desired for Hashcat. You certainly never needed to use LD_LIBRARY_PATH.

Second, cudaHashcat doesn't exist anymore in beta, OpenCL is used for all platforms and devices.

So I guess the first thing to do would be to get rid of everything you have shown above, especially APP SDK & CUDA, install latest fglrx & Nvidia driver, download latest oclHashcat beta, and then just run it.

Seems to be possible even with 2.01 oclhc & 2.01 cudahc

Code:
ps ef
 PID TTY      STAT   TIME COMMAND
13328 pts/16   Ss     0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
15106 pts/16   R+     0:00  \_ ps ef LC_PAPER=en_US.UTF-8 XDG_SESSION_ID=13 LC_MONETARY=en_US.UTF-8 TERM=xterm S
12398 pts/14   Ss     0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
12441 pts/14   S+     0:00  \_ watch nvidia-smi LC_PAPER=en_US.UTF-8 XDG_SESSION_ID=10 LC_MONETARY=en_US.UTF-8 T
11924 pts/13   Ss     0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
12178 pts/13   S+     0:00  \_ /home/hp/maskprocessor-master/src/mp64.bin -i 8 23 -q 3 ?a?a?a?a?a?a?a?a LC_PAPER
12179 pts/13   Sl+    0:22  \_ /home/hp/cudaHashcat-2.01/cudaHashcat64.bin -m 1800 YYYYYYYY.hash LC_PAP
11640 pts/12   Ss+    0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
3012 pts/0    Ss     0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
3342 pts/0    S+     0:03  \_ watch amdconfig --odgt --odgc LC_PAPER=en_US.UTF-8 XDG_SESSION_ID=3 LC_MONETARY=e
2822 pts/11   Ss     0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
4350 pts/11   S+     0:02  \_ watch sensors LC_PAPER=en_US.UTF-8 XDG_SESSION_ID=2 LC_MONETARY=en_US.UTF-8 TERM=
2751 pts/9    Ss     0:00 -bash LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LANG=it_IT.UTF-8 LC_MEASUREMENT=en_
3440 pts/9    S+     0:03  \_ /home/hp/maskprocessor-master/src/mp64.bin -i 8 8 -q 3 -r 6 ?1?1?1?1?1?1?1?1 -1 ?
3441 pts/9    Sl+    1:55  \_ /home/hp/oclHashcat-2.01/oclHashcat64.bin -m 2500 XXXXXXXXXXX.hccap --force


                                            
Session.Name...: oclHashcat
Status.........: Running
Input.Mode.....: Pipe
Hash.Target....: XXXXXXXXXXX (XX:XX:XX:XX:XX:XX <-> XX:XX:XX:XX:XX:XX)
Hash.Type......: WPA/WPA2
Time.Started...: Tue Apr  5 21:41:36 2016 (52 mins, 33 secs)
Speed.GPU.#1...:    13157 H/s
Recovered......: 0/1 (0.00%) Digests, 0/1 (0.00%) Salts
Progress.......: 41508864
Rejected.......: 0
HWMon.GPU.#1...: 99% Util, -1c Temp, N/A Fan

                                            
Session.Name...: cudaHashcat
Status.........: Running
Input.Mode.....: Pipe
Hash.Target....: $6$YYYYYYYYYYYYYYYYYYYYYYYYY.....
Hash.Type......: sha512crypt, SHA512(Unix)
Time.Started...: Tue Apr  5 22:22:56 2016 (12 mins, 50 secs)
Speed.GPU.#1...:     2210 H/s
Recovered......: 0/1 (0.00%) Digests, 0/1 (0.00%) Salts
Progress.......: 1702912
Rejected.......: 0
HWMon.GPU.#1...: -1% Util, 42c Temp, 40% Fan


amdconfig --adapter=0  --od-enable --od-setclocks=770,112
AMD Overdrive(TM) enabled
ERROR - ATI Overdrive(TM) is not supported on Adapter 0 - AMD Radeon HD 7560D

nvidia-settings -q all |grep Attribute| grep GpuUUID  &&  nvidia-settings -q all |grep Attribute| grep GPUUtilization &&  nvidia-settings -q all |grep Attribute| grep GPUTargetFanSpeed && nvidia-settings -q all |grep Attribute| grep GPUCurrentCoreVoltage  && nvidia-settings -q all |grep Attribute| grep GPUPowerSource

NO OUTPUT

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 364.12  (buildmeister@swio-display-x64-rhel04-01)  Wed Mar 16 21:56:36 PDT 2016

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
EndSection

Section "InputDevice"

    # generated from default
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/psaux"
    Option        "Emulate3Buttons" "no"
    Option        "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Unknown"
    ModelName    "Unknown"
    HorizSync    28.0 - 33.0
    VertRefresh  43.0 - 72.0
    Option        "DPMS"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"

#    Option         "CoolBits" "12"
#    Option         "CoolBits" "2"
#   Option         "CoolBits" "4"
#    Option         "CoolBits" "8"
#    Option         "CoolBits" "28"
    Identifier  "Device0"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    Option        "CoolBits" "30"
    Option        "Interactive" "False"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:0:1:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Device0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Depth     24
    EndSubSection
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device     "aticonfig-Device[0]-0"
    Monitor    "aticonfig-Monitor[0]-0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection
This was the previous one:
Code:
cat /etc/X11/xorg.conf.04022016
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 364.12  (buildmeister@swio-display-x64-rhel04-01)  Wed Mar 16 21:56:36 PDT 2016

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "CoolBits" "12"
    Option         "Interactive" "False"

#    Option         "CoolBits" "2"
#   Option         "CoolBits" "4"
#    Option         "CoolBits" "8"
#    Option         "CoolBits" "28"

EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I know my xorg.conf is messed up but I don't know how to set up to 2 xorg.conf for 2 different gpu each as its own utility to generate a unique file

Code:
clinfo
Number of platforms:                 2
  Platform Profile:                 FULL_PROFILE
  Platform Version:                 OpenCL 1.2 AMD-APP (1445.5)
  Platform Name:                 AMD Accelerated Parallel Processing
  Platform Vendor:                 Advanced Micro Devices, Inc.
  Platform Extensions:                 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices cl_amd_hsa
  Platform Profile:                 FULL_PROFILE
  Platform Version:                 OpenCL 1.2 CUDA 8.0.0
  Platform Name:                 NVIDIA CUDA
  Platform Vendor:                 NVIDIA Corporation
  Platform Extensions:                 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts


  Platform Name:                 AMD Accelerated Parallel Processing
Number of devices:                 2
  Device Type:                     CL_DEVICE_TYPE_GPU
  Vendor ID:                     1002h
  Board name:                     AMD Radeon HD 7560D
  Device Topology:                 PCI[ B#0, D#1, F#0 ]
  Max compute units:                 4
  Max work items dimensions:             3
    Max work items[0]:                 256
    Max work items[1]:                 256
    Max work items[2]:                 256
  Max work group size:                 256
  Preferred vector width char:             16
  Preferred vector width short:             8
  Preferred vector width int:             4
  Preferred vector width long:             2
  Preferred vector width float:             4
  Preferred vector width double:         0
  Native vector width char:             16
  Native vector width short:             8
  Native vector width int:             4
  Native vector width long:             2
  Native vector width float:             4
  Native vector width double:             0
  Max clock frequency:                 760Mhz
  Address bits:                     32
  Max memory allocation:             159645696
  Image support:                 Yes
  Max number of images read arguments:         128
  Max number of images write arguments:         8
  Max image 2D width:                 16384
  Max image 2D height:                 16384
  Max image 3D width:                 2048
  Max image 3D height:                 2048
  Max image 3D depth:                 2048
  Max samplers within kernel:             16
  Max size of kernel argument:             1024
  Alignment (bits) of base address:         2048
  Minimum alignment (bytes) for any datatype:     128
  Single precision floating point capability
    Denorms:                     No
    Quiet NaNs:                     Yes
    Round to nearest even:             Yes
    Round to zero:                 Yes
    Round to +ve and infinity:             Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                     None
  Cache line size:                 0
  Cache size:                     0
  Global memory size:                 638582784
  Constant buffer size:                 65536
  Max number of constant args:             8
  Local memory type:                 Scratchpad
  Local memory size:                 32768
  Kernel Preferred work group size multiple:     64
  Error correction support:             0
  Unified memory for Host and Device:         1
  Profiling timer resolution:             1
  Device endianess:                 Little
  Available:                     Yes
  Compiler available:                 Yes
  Execution capabilities:                
    Execute OpenCL kernels:             Yes
    Execute native function:             No
  Queue on Host properties:                
    Out-of-Order:                 No
    Profiling :                     Yes
  Platform ID:                     0x7f41ab64dde0
  Name:                         Devastator
  Vendor:                     Advanced Micro Devices, Inc.
  Device OpenCL C version:             OpenCL C 1.2
  Driver version:                 1445.5 (VM)
  Profile:                     FULL_PROFILE
  Version:                     OpenCL 1.2 AMD-APP (1445.5)
  Extensions:                     cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_amd_image2d_from_buffer_read_only cl_khr_spir cl_khr_gl_event


  Device Type:                     CL_DEVICE_TYPE_CPU
  Vendor ID:                     1002h
  Board name:                    
  Max compute units:                 4
  Max work items dimensions:             3
    Max work items[0]:                 1024
    Max work items[1]:                 1024
    Max work items[2]:                 1024
  Max work group size:                 1024
  Preferred vector width char:             16
  Preferred vector width short:             8
  Preferred vector width int:             4
  Preferred vector width long:             2
  Preferred vector width float:             8
  Preferred vector width double:         4
  Native vector width char:             16
  Native vector width short:             8
  Native vector width int:             4
  Native vector width long:             2
  Native vector width float:             8
  Native vector width double:             4
  Max clock frequency:                 1400Mhz
  Address bits:                     64
  Max memory allocation:             2147483648
  Image support:                 Yes
  Max number of images read arguments:         128
  Max number of images write arguments:         8
  Max image 2D width:                 8192
  Max image 2D height:                 8192
  Max image 3D width:                 2048
  Max image 3D height:                 2048
  Max image 3D depth:                 2048
  Max samplers within kernel:             16
  Max size of kernel argument:             4096
  Alignment (bits) of base address:         1024
  Minimum alignment (bytes) for any datatype:     128
  Single precision floating point capability
    Denorms:                     Yes
    Quiet NaNs:                     Yes
    Round to nearest even:             Yes
    Round to zero:                 Yes
    Round to +ve and infinity:             Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                     Read/Write
  Cache line size:                 64
  Cache size:                     16384
  Global memory size:                 7726592000
  Constant buffer size:                 65536
  Max number of constant args:             8
  Local memory type:                 Global
  Local memory size:                 32768
  Kernel Preferred work group size multiple:     1
  Error correction support:             0
  Unified memory for Host and Device:         1
  Profiling timer resolution:             1
  Device endianess:                 Little
  Available:                     Yes
  Compiler available:                 Yes
  Execution capabilities:                
    Execute OpenCL kernels:             Yes
    Execute native function:             Yes
  Queue on Host properties:                
    Out-of-Order:                 No
    Profiling :                     Yes
  Platform ID:                     0x7f41ab64dde0
  Name:                         AMD A8-5500 APU with Radeon(tm) HD Graphics
  Vendor:                     AuthenticAMD
  Device OpenCL C version:             OpenCL C 1.2
  Driver version:                 1445.5 (sse2,avx,fma4)
  Profile:                     FULL_PROFILE
  Version:                     OpenCL 1.2 AMD-APP (1445.5)
  Extensions:                     cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_amd_svm cl_khr_gl_event


  Platform Name:                 NVIDIA CUDA
Number of devices:                 1
  Device Type:                     CL_DEVICE_TYPE_GPU
  Vendor ID:                     10deh
  Max compute units:                 1
  Max work items dimensions:             3
    Max work items[0]:                 1024
    Max work items[1]:                 1024
    Max work items[2]:                 64
  Max work group size:                 1024
  Preferred vector width char:             1
  Preferred vector width short:             1
  Preferred vector width int:             1
  Preferred vector width long:             1
  Preferred vector width float:             1
  Preferred vector width double:         1
  Native vector width char:             1
  Native vector width short:             1
  Native vector width int:             1
  Native vector width long:             1
  Native vector width float:             1
  Native vector width double:             1
  Max clock frequency:                 954Mhz
  Address bits:                     64
  Max memory allocation:             536821760
  Image support:                 Yes
  Max number of images read arguments:         256
  Max number of images write arguments:         16
  Max image 2D width:                 16384
  Max image 2D height:                 16384
  Max image 3D width:                 4096
  Max image 3D height:                 4096
  Max image 3D depth:                 4096
  Max samplers within kernel:             32
  Max size of kernel argument:             4352
  Alignment (bits) of base address:         4096
  Minimum alignment (bytes) for any datatype:     128
  Single precision floating point capability
    Denorms:                     Yes
    Quiet NaNs:                     Yes
    Round to nearest even:             Yes
    Round to zero:                 Yes
    Round to +ve and infinity:             Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                     Read/Write
  Cache line size:                 128
  Cache size:                     16384
  Global memory size:                 2147287040
  Constant buffer size:                 65536
  Max number of constant args:             9
  Local memory type:                 Scratchpad
  Local memory size:                 49152
  Kernel Preferred work group size multiple:     32
  Error correction support:             0
  Unified memory for Host and Device:         0
  Profiling timer resolution:             1000
  Device endianess:                 Little
  Available:                     Yes
  Compiler available:                 Yes
  Execution capabilities:                
    Execute OpenCL kernels:             Yes
    Execute native function:             No
  Queue on Host properties:                
    Out-of-Order:                 Yes
    Profiling :                     Yes
  Platform ID:                     0x1b6ad10
  Name:                         GeForce GT 710
  Vendor:                     NVIDIA Corporation
  Device OpenCL C version:             OpenCL C 1.2
  Driver version:                 364.12
  Profile:                     FULL_PROFILE
  Version:                     OpenCL 1.2 CUDA
  Extensions:                     cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts


Messages In This Thread
RE: It is possible to use a apu and a discrete nvidia together - by n_lona - 04-05-2016, 10:43 PM