Forum

Author Topic: gpu_mask?  (Read 5326 times)

tforward2

  • Newbie
  • *
  • Posts: 17
    • View Profile
gpu_mask?
« on: January 07, 2015, 06:38:43 PM »
gpu_mask
GPU device bit mask: 1 - use device, 0 - do not use (i.e. value 5 enables device number 0 and 2).
Type int

1 On, 0 Off that makes sense

"Value 5 enables device 0 and 2" seems complete arbitrary, can someone explain the logic behind this?

What would a value of 7 do?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: gpu_mask?
« Reply #1 on: January 07, 2015, 07:25:40 PM »
Hello tforward2

It is binary mask, so you need to convert 7 into bits: 111 - it means that three devices will be used. And if the mask is 101 - it means that first and third device will be used, while the second one remain inactive.
Best regards,
Alexey Pasumansky,
Agisoft LLC

tforward2

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: gpu_mask?
« Reply #2 on: January 07, 2015, 07:32:58 PM »
Thanks that is much more clear. Could you add what you just responded with to the API?