diff options
author | Denis Steckelmacher <steckdenis@yahoo.fr> | 2011-08-17 16:10:07 +0200 |
---|---|---|
committer | Denis Steckelmacher <steckdenis@yahoo.fr> | 2011-08-17 16:10:07 +0200 |
commit | 7c2e288d61cf8d3f25a4063685a4c7f43d89e0d8 (patch) | |
tree | 8351bc40715e87e59c941055c943a5defb2aa006 | |
parent | 5b6894ddc065a818d70d579a80a4c132265e03aa (diff) |
Handle the case where clBuildProgram is called with num_devices=0
-rw-r--r-- | src/core/program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/program.cpp b/src/core/program.cpp index 5b55a3b..241750c 100644 --- a/src/core/program.cpp +++ b/src/core/program.cpp @@ -296,7 +296,7 @@ cl_int Program::build(const char *options, setDevices(num_devices, device_list); } - for (cl_uint i=0; i<num_devices; ++i) + for (cl_uint i=0; i<p_device_dependent.size(); ++i) { DeviceDependent &dep = deviceDependent(device_list[i]); |