Default platform is now specified
authorVincent Danjean <Vincent.Danjean@ens-lyon.org>
Wed, 5 Dec 2012 12:01:47 +0000 (13:01 +0100)
committerVincent Danjean <Vincent.Danjean@ens-lyon.org>
Wed, 5 Dec 2012 12:01:47 +0000 (13:01 +0100)
commit67b5a544d8f7ae7ebd0422655a47d41e99dd0065
tree1390cdb038a41ef240cc2a7b0f035a7d708a6898
parent5ca1d140c069d6a5466dd4bcc5a8ae0050bf30de
Default platform is now specified

Perhaps this should be generalized to other functions

From the doc:

3: How will the ICD handle a NULL cl_platform_id?
RESOLVED: The ICD will by default choose the first enumerated platform as the NULL
platform. The user can override this default by setting an environment variable
OPENCL_ICD_DEFAULT_PLATFORM to the desired platform index. The API calls that deal
with platforms will return CL_INVALID_PLATFORM if the index is not between zero and
(number of platforms - 1), both inclusive.
ocl_icd_loader.c