From 73f1a43d971c02483fe22375eac09526099f9310 Mon Sep 17 00:00:00 2001 From: haoyuan2 Date: Fri, 25 Feb 2022 19:59:52 -0800 Subject: [PATCH] SWDEV-298331 - Fix FreeLibrary throw exception issue on Windows dummy function for OCL, release resource for HIP Change-Id: Idda5047ab7393747d13a9231e0cca5953fc68a6a [ROCm/clr commit: 5d65c0da88e749a892296fa55117f23fa139ac5f] --- projects/clr/opencl/amdocl/cl_device.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/clr/opencl/amdocl/cl_device.cpp b/projects/clr/opencl/amdocl/cl_device.cpp index de8ccb1bd2..92d43af5f2 100644 --- a/projects/clr/opencl/amdocl/cl_device.cpp +++ b/projects/clr/opencl/amdocl/cl_device.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 - 2021 Advanced Micro Devices, Inc. +/* Copyright (c) 2008 - 2022 Advanced Micro Devices, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -491,6 +491,13 @@ RUNTIME_ENTRY(cl_int, clReleaseDevice, (cl_device_id device)) { } RUNTIME_EXIT +// dummy function for OCL, release resource for HIP +namespace amd { + +void shutDown() {} + +} // namespace amd + /*! @} * @} */