[fix] Some unittests running on the FPGA use undeclared BitstreamHashMap
@@ -336,8 +336,10 @@ public class OCLCodeCache {
private void addNewEntryInBitstreamHashMap(String id) {
String lookupBufferDeviceKernelName = id + String.format(".device=%d:%d", deviceContext.getDevice().getIndex(), deviceContext.getPlatformContext().getPlatformIndex());
+ if (precompiledBinariesPerDevice != null) {
precompiledBinariesPerDevice.put(lookupBufferDeviceKernelName, FPGA_BIN_LOCATION);
}
+ }
OCLInstalledCode installFPGASource(String id, String entryPoint, byte[] source) { // TODO Override this method for each FPGA backend
String[] compilationCommand;
