gpgpu - Parallel Brute Froce Algorithm GPU -
i have implemented parallel bf generator in python in post! parallelize brute force generation.
i want implement parallel technique on gpu. should parallel bf generator on gpu.
can me out code examples parallel bf generator on gpu?
couldn't find examples online made me suspicious...
thx
look @ implementation - did distribution on gpu code:
void incbrutegpu( unsigned char* thebrute, unsigned int charsetlen, unsigned int brutelength, unsigned int incnr){ unsigned int = 0; while(incrementby > 0 && < brutelength){ int add = incrementby + ourbrute[i]; ourbrute[i] = add % charsetlen; incrementby = add / charsetlen; i++; } }
call this:
// thread index number int idx = get_global_id(0); // length of charset "abcdefghi......" unsigned int charsetlen = 26; // length of word want brute unsigned int brutelength = 6; // thebrute keeps single start numbers of alphabeth unsigned char thebrute[max_brute_length]; incrementbrutegpu(thebrute, charsetlen, brutelength, idx);
good luck!
Comments
Post a Comment