|
Message-id: <C8B81AE4-609F-45D6-9DE2-73456A06FB9B@erols.com> Date: Wed, 05 Oct 2011 08:33:47 -0400 From: Erik Winkler <ewinkler@...ls.com> To: john-users@...ts.openwall.com Subject: Re: OpenCL performance numbers on Radeon HD 5870 Compiles and runs fine on MacOS Lion (10.7). This is OpenCL v1.50.62. ./john -test -format:PHPASSOPENCL Benchmarking: PHPASSOPENCL [PORTABLE-MD5]... OpenCL Device: ATI Radeon HD 5670 DONE Raw: 58251 c/s real, 1945K c/s virtual ./john -test -format:CRYPTMD5OPENCL Benchmarking: CRYPTMD5OPENCL [MD5-based CRYPT]... OpenCL Device: ATI Radeon HD 5670 DONE Raw: 25246 c/s real, 853333 c/s virtual While it compiles fine on MacOS Snow Leopard (10.6), it fails to run on it. This is OpenCL v1.5.6. See errors below. ./john -test -format:PHPASSOPENCL Benchmarking: PHPASSOPENCL [PORTABLE-MD5]... OpenCL Device: ATI Radeon HD 6770M Error while building program [-11] BUILD LOG: <program source>:317:34:{317:34-317:45}: warning: pointer types point to integer types with different sign initializing 'unsigned char __attribute__((address_space(1)))const[15]', expected 'char __attribute__((address_space(1)))const *' [-Wpointer-sign] __global const char *password = data[idx].v; ^~~~~~~~~~~ ./john -test -format:CRYPTMD5OPENCL Benchmarking: CRYPTMD5OPENCL [MD5-based CRYPT]... OpenCL Device: ATI Radeon HD 6770M Error while building program [-11] BUILD LOG: <program source>:78:26:{78:26-78:32}: warning: pointer types point to integer types with different sign initializing 'char __attribute__((address_space(1)))*', expected 'unsigned char __attribute__((address_space(1)))*' [-Wpointer-sign] __global uint8_t *src = string; ^~~~~~ <program source>:89:27:{89:27-89:33}: warning: pointer types point to integer types with different sign initializing 'char *', expected 'unsigned char *' [-Wpointer-sign] __private uint8_t *src = string; ^~~~~~ <program source>:133:26:{133:26-133:41}: warning: incompatible pointer types initializing 'unsigned char *', expected 'unsigned int *' __private uint32_t *x = &ctx->buffer[0]; ^~~~~~~~~~~~~~~ <program source>:237:30:{237:30-237:45}: warning: pointer types point to integer types with different sign initializing 'unsigned char __attribute__((address_space(1)))const[15]', expected 'char __attribute__((address_space(1)))const *' [-Wpointer-sign] __global const char *pass = inbuffer[idx].v; ^~~~~~~~~~~~~~~ <program source>:243:24:{243:24-243:35}: warning: initializing 'char __attribute__((address_space(1)))const[8]' discards qualifiers, expected 'char __attribute__((address_space(1)))*' __global char *salt = hsalt->salt; ^~~~~~~~~~~ <program source>:249:26:{249:26-249:30}: warning: passing 'char __attribute__((address_space(1)))const *' discards qualifiers, expected 'char __attribute__((address_space(1)))*' ctx_update_global(&ctx, pass, pass_len); ^~~~ <program source>:253:30:{253:30-253:34}: warning: passing 'char __attribute__((address_space(1)))const *' discards qualifiers, expected 'char __attribute__((address_space(1)))*' ctx_update_global(&alt_ctx, pass, pass_len); ^~~~ <program source>:255:30:{255:30-255:34}: warning: passing 'char __attribute__((address_space(1)))const *' discards qualifiers, expected 'char __attribute__((address_space(1)))*' ctx_update_global(&alt_ctx, pass, pass_len); ^~~~ <program source>:259:28:{259:28-259:38}: warning: incompatible pointer types passing 'unsigned int [4]', expected 'char *' ctx_update_private(&ctx, alt_result, 16); ^~~~~~~~~~ <program source>:260:27:{260:27-260:37}: warning: incompatible pointer types passing 'unsigned int [4]', expected 'char *' ctx_update_private(&ctx, alt_result, i); ^~~~~~~~~~ <program source>:279:28:{279:28-279:32}: warning: passing 'char __attribute__((address_space(1)))const *' discards qualifiers, expected 'char __attribute__((address_space(1)))*' ctx_update_global(&ctx, pass, pass_len); ^~~~ <program source>:281:29:{281:29-281:54}: warning: passing 'char const *' discards qualifiers, expected 'char *' ctx_update_private(&ctx, (const char *) alt_result, ^~~~~~~~~~~~~~~~~~~~~~~~~ <program source>:288:28:{288:28-288:32}: warning: passing 'char __attribute__((address_space(1)))const *' discards qualifiers, expected 'char __attribute__((address_space(1)))*' ctx_update_global(&ctx, pass, pass_len); ^~~~ <program source>:291:29:{291:29-291:54}: warning: passing 'char const *' discards qualifiers, expected 'char *' ctx_update_private(&ctx, (const char *) alt_result, ^~~~~~~~~~~~~~~~~~~~~~~~~ <program source>:294:28:{294:28-294:32}: warning: passing 'char __attribute__((address_space(1)))const *' discards qualifiers, expected 'char __attribute__((address_space(1)))*' ctx_update_global(&ctx, pass, pass_len); ^~~~ Thanks, Erik > -added macosx target proposed by Erik Winkler > > Thank you all for your feedback. > > Lukas
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.