Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashcat: 2.0.0 -> 3.0.0 #16623

Closed
wants to merge 2 commits into from
Closed

hashcat: 2.0.0 -> 3.0.0 #16623

wants to merge 2 commits into from

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Jun 30, 2016

Motivation for this change

Just a package update.

Things done
  • Tested using sandboxing
    (nix.useChroot on NixOS,
    or option build-use-chroot in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

OpenCL is now a requirement.

If you see a ERROR: clGetPlatformIDs() : -1001 : CL_UNKNOWN_ERROR error it's because /etc/OpenCL/vendors is missing.

configureFlags = [ "--enable-official-khronos-headers" ];

meta = with stdenv.lib; {
description = "this free ICD Loader can load any (free or non free) ICD.";
Copy link
Contributor

@bjornfor bjornfor Jun 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: "this free" => "This free" and drop the trailing dot. (EDIT: typo)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@bjornfor
Copy link
Contributor

Nice, it seems they finally merged hashcat and oclHashcat!

Add missing meta attributes
OpenCL is now a requirement.

If you see a `ERROR: clGetPlatformIDs() : -1001 : CL_UNKNOWN_ERROR`
error it's because `/etc/OpenCL/vendors` is missing.
@zimbatm
Copy link
Member Author

zimbatm commented Jul 1, 2016

Yup but OpenCL is now a requirement. Is OpenCL working on your computer?

@bjornfor
Copy link
Contributor

bjornfor commented Jul 1, 2016

Don't know, haven't tested OpenCL before. So it's not just "nix-env -i hashcat && hashcat" anymore?

@zimbatm
Copy link
Member Author

zimbatm commented Jul 1, 2016

No you need a working OpenCL installation, meaning you need a .icd file in /etc/OpenCL/vendors.

Right now I think only Nvidia boxes or non-nixos boxes might work: https://github.com/zimbatm/nixpkgs/blob/hashcat-3.0.0/nixos/modules/hardware/video/nvidia.nix#L65 . That's why I was trying to add the intel sdk ^_^

Another thing I tried is adding this to my configuration.nix:

environment.etc."OpenCL/vendors/intel-beignet.icd".source =
    "${pkgs.beignet}/etc/OpenCL/vendors/intel-beignet.icd";

Which gets me past the ERROR: clGetPlatformIDs() : -1001 : CL_UNKNOWN_ERROR but gives me something else instead:

 Device #1: Kernel m00000_a0.4251ce2a.kernel not found in cache! Building may take a while...
ASSERTION FAILED: Fail to compile kernel, may need to increase reserved registers for spilling.
  at file /tmp/nix-build-beignet-1.1.2.drv-0/Beignet-1.1.2-Source/backend/src/backend/gen_program.cpp, function virtual gbe::Kernel* gbe::GenProgram::compileKernel(const gbe::ir::Unit&, const string&, bool), line 202
Trace/breakpoint trap

@bjornfor
Copy link
Contributor

bjornfor commented Jul 1, 2016

Hm, so hashcat will be Nvidia-only on NixOS when this is merged? I don't have Nvidia GPU (at home), and I guess there are others in my situation, is this enough of a regression to either (1) first make OpenCL work for Intel (and AMD) or (2) keep hashcat 2.0 around (in addition to 3.0)?

@zimbatm
Copy link
Member Author

zimbatm commented Jul 1, 2016

Yeah maybe keeping hashcat 2.x would be a good idea until the OpenCL support in NixOS gets better

@grahamc
Copy link
Member

grahamc commented Oct 22, 2016

Hey @zimbatm, are you still interested in getting this merged?

@zimbatm
Copy link
Member Author

zimbatm commented Oct 23, 2016

@grahamc not really, feel free to close or take over if you want

@grahamc grahamc closed this Nov 28, 2016
@zimbatm zimbatm deleted the hashcat-3.0.0 branch November 28, 2016 10:47
@Mic92 Mic92 mentioned this pull request Dec 3, 2016
7 tasks
@grahamc
Copy link
Member

grahamc commented May 21, 2017

For people coming later, this worked for me on a Dell 9560:

hardware.opengl.extraPackages = [ pkgs.beignet ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants