Results 1 to 3 of 3

Thread: opencl dealing with unsigned long long integers

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    opencl dealing with unsigned long long integers

    Hi,

    Please, can someone provides me help, is it possible to define a :

    global_item_size = (1ULL << 56)

    (in other terms: 2 exponant 56) ?

    I need such amount if "work items" to execute an exhaustive attack (cryptography area).

    Thank you in advance.

    Sofiane.

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    271

    Re: opencl dealing with unsigned long long integers

    Quote Originally Posted by meradji
    Hi,

    Please, can someone provides me help, is it possible to define a :

    global_item_size = (1ULL << 56)

    (in other terms: 2 exponant 56) ?

    I need such amount if "work items" to execute an exhaustive attack (cryptography area).

    Thank you in advance.

    Sofiane.
    The opencl specification is the place where answers to such questions are best found.

    e.g. see section 6.1.1 "Built-in Scalar Data Types"

    work sizes are size_t, matches the device address bits - i.e. 64-bits only on64-bit devices. My GTX 480 device is only 32-bits, so 2^56 would not be possible (and i presume it would be the same for all gpu cards).

    For such a problem size you probably would just run loops within each workgroup instead of leaving it to the hardware only.

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Re: opencl dealing with unsigned long long integers

    Hi Notzed,

    Thank you for your quick reply !

    In fact, I queried the device, silimar to yours (NVIDIA GTX 470) and it returned me this :

    DEVICE ADDRESS BITS : 32

    Bye.

Similar Threads

  1. How to use long long type?
    By Rui in forum OpenCL
    Replies: 1
    Last Post: 03-29-2010, 10:23 PM
  2. Replies: 4
    Last Post: 11-30-2009, 03:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •