Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Fix compilation errors in Linux #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/khronos_ocl_clhpp/cl2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,7 @@ class Context
error = platforms[i].getDevices(type, &devices);

#if defined(CL_HPP_ENABLE_EXCEPTIONS)
} catch (Error) {}
} catch (Error &) {}
// Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type
// We do error checking next anyway, and can throw there if needed
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/include/generic_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct generic_layer : public primitive_base<generic_layer, CLDNN_PRIMITIVE_DESC
generic_layer(const dto* dto)
: primitive_base(dto)
, output_layout(dto->output_layout)
, generic_params(*static_cast<const kernel_selector::generic_kernel_params* const>(dto->generic_params))
, generic_params(*static_cast<const kernel_selector::generic_kernel_params*>(dto->generic_params))
{
}

Expand Down