A GPU version of Enigma software |
Message boards : Number crunching : A GPU version of Enigma software
Author | Message |
---|---|
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
I have just finished a GPU version of the Enigma breaking software. I am still testing the program and exploring the possibilities of further speed improvement, but since TJM is now working on a major upgrade on the server side: http://www.enigmaathome.net/forum_thread.php?id=835#4420 - it might be a good time to include support of GPU in Enigma@home, so I am releasing the 64-bit Windows binaries of my program for testing. The software is here: https://github.com/VE3NEA/enigma-cuda To see if it works, just run the included run.bat file. On my Nvidia GTX 1070, this program breaks the well-known PBNXA message (181 char) in 10 minutes by iterating over all wheel orders. The source code will be released once I finish my experiments and clean it up. If you have a descent Nvidia card, please give this software a try and let me know if there are any issues. Also, please let us all know how much time it takes the program to break PBNXA on your video card. Cheers, Alex Shovkoplyas VE3NEA |
jaro2404 Send message Joined: 16 Sep 11 Posts: 49 Credit: 171,398 RAC: 0 |
GTX 660m here, 3:38 using 381.65 driver. |
thinking_goose Send message Joined: 12 Nov 07 Posts: 119 Credit: 2,750,621 RAC: 0 |
That's interesting, I'll give it a try. There was discussion a few years ago about CUDA support. Another user here mdoerner has/had a CUDA program and it was quite effective. Are you planning to release a 32bit version at some point? |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
Sure, I can build a 32-bit version, though I doubt that many 32-bit systems have modern video cards. |
thinking_goose Send message Joined: 12 Nov 07 Posts: 119 Credit: 2,750,621 RAC: 0 |
My best card (gtx660) is in this 32bit XP machine at the moment. It normally runs 64bit debian, but I'm having problems with the linux CUDA drivers... |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
I have added a 32-bit executable to the repository. |
forretrio Send message Joined: 25 Dec 14 Posts: 9 Credit: 5,541,534 RAC: 0 |
Originally it was expected that the original batch to be finished within a year so optimized apps/gpu apps may not be of great use, but it seems that things may change given the newest announcement. I am definitely more than happy to contribute my crappy card (950M) if such app is available. |
Helix Von Smelix Send message Joined: 31 Oct 07 Posts: 36 Credit: 1,198,682,898 RAC: 0 |
any chance of a zip file?? |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
To download the program as a zip, on the project's page of GitHub click on the "Clone or download" button, then on "Download ZIP". |
Helix Von Smelix Send message Joined: 31 Oct 07 Posts: 36 Credit: 1,198,682,898 RAC: 0 |
First time I ran it, it took 11 seconds. Second time 9 seconds. What did I do wrong? x64 on a GTX980Ti |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
@Helix your timing is quite reasonable. My own measurements vary depending on what else is running on the system when the test is executed. The run.bat file included with the project that evaluates all keys for one rotor order normally executes on my 1070 in 8-9 seconds, but if another GPU process is running, it may take up to 26 seconds to finish. To check if the program works as it should, verify that it recovers correct Enigma settings for the PBNXA message: Key: B:524:KZ:YED Plugs: AECFGLHIKPMSNROUQYTW |
Helix Von Smelix Send message Joined: 31 Oct 07 Posts: 36 Credit: 1,198,682,898 RAC: 0 |
Yep all looks good. |
[AF>Amis des Lapins] Oncle Bob Send message Joined: 24 Feb 13 Posts: 18 Credit: 55,194,685 RAC: 0 |
Erf, NVidia GPU only :/ |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
While testing the enigma-cuda progam, I cracked the CZURH message from Frode Weierud's web site (http://cryptocellar.org/bgac/GArmy_messages.html). This is one of several messages that were published about 10 years ago but resisted all attempts to break them. Enigma-cuda broke it in 4 hours. The solution is: Key: B:231:GT:MVS Plugs: ALCGDHEJFNIMKQOTPSUW Text: "AN ABGABE fefd BRUNNEN VERSORGUNG SANORDNUNG EN ZWO AQT X SIEBEN X WIRD ERINNERT" |
Tom_unoduetre Send message Joined: 18 Sep 07 Posts: 14 Credit: 2,149,222 RAC: 0 |
Win 10 Pro 64 bit, Gtx 1060, running time 10 to 11 seconds |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
Thank you Tom_unoduetre and everyone who shared their test results with me. Here is what I have so far: video card time, s ------------------------------- GTX 1070 8 GTX 1060 10.5 GTX 980Ti 10 GTX TITAN Black 27 GTX 760 (50% overclock) 54 GTX 660m 218 GT 420 1280 No one has reported any errors, crashes or incorrect output. |
Peciak Send message Joined: 27 Aug 09 Posts: 9 Credit: 117,918,807 RAC: 0 |
And how to crunch any CPU? |
Tom_unoduetre Send message Joined: 18 Sep 07 Posts: 14 Credit: 2,149,222 RAC: 0 |
While testing the enigma-cuda progam, I cracked the CZURH message from Frode Weierud's web site (http://cryptocellar.org/bgac/GArmy_messages.html). This is one of several messages that were published about 10 years ago but resisted all attempts to break them. Enigma-cuda broke it in 4 hours. The solution is: This is great news and should made public as a news item here and on the cryptocellar website I think! |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
enigma-cuda.exe broke another previously not broken message today, MAKJH: Key: B:254:VM:SZL Plugs: AJBDCZEHGUIKLVMQNXOS Text: EINS DREI X SIeBEN X KOENNEN STATT ZWO TAGES sletze DREI ARMEE ver PFL LAGER X OSTROW X EMPFANGEN X erdyn TJM hurry up while unbroken messages last! :) |
Alex VE3NEA Send message Joined: 22 Oct 16 Posts: 36 Credit: 128,745 RAC: 0 |
From private communication with Frode at CryptoCellar I learnred that they already broke the MAKJH message, they just did not publish the solution. |
Message boards :
Number crunching :
A GPU version of Enigma software