AnsweredAssumed Answered

Strange behaviour of Device ID

Question asked by sandyandr on Nov 17, 2015
Latest reply on Nov 17, 2015 by sandyandr

Why Device ID changes each time I start my program?

To prepare the kernel for execution, my idea was to implement this simple method in a initialization section of my program:

IF the source file is available - (1) build the kernel from it and then save the result into a separate binary file for the later use

ELSE - (2) try to build it from a correspondent binary file (which is saved during any of previous successful launch of (1)).

The name of binary supposed to be something like [deviceid].bin but as I found out there is only cl_device_id's LSW is a constant - its MSW is different each time I launch my program. I could use only LSW, of'course, but I'm not sure is it long enough to be unique among all GPUs possibly installed (in any particular system). Could somebody suggest something sensible here?

Outcomes