Refactor code for selection of default platform
authorVincent Danjean <Vincent.Danjean@ens-lyon.org>
Tue, 3 Dec 2013 00:10:59 +0000 (01:10 +0100)
committerVincent Danjean <Vincent.Danjean@ens-lyon.org>
Tue, 3 Dec 2013 00:10:59 +0000 (01:10 +0100)
commit76e8300253327291be666e6ec55da687121c31e3
tree0137be1c1ce3c59c9203dec507b199d1842cfa2e
parent354ddb3decc81ba85773115c5f1f98c02fd67ad7
Refactor code for selection of default platform

The default platform is calculated only once in a run
This can lead to a bug if the OPENCL_ICD_DEFAULT_PLATFORM envvar is modified during the execution of the program
icd_generator.rb
ocl_icd_loader.c
ocl_icd_loader.h