diff --git a/projects/clr/rocclr/platform/program.cpp b/projects/clr/rocclr/platform/program.cpp index 6e695d3f07..05fd58d19e 100644 --- a/projects/clr/rocclr/platform/program.cpp +++ b/projects/clr/rocclr/platform/program.cpp @@ -227,8 +227,6 @@ device::Program* Program::getDeviceProgram(const Device& device) const { return it->second; } -Monitor Program::buildLock_("OCL build program", true); - static bool adjustOptionsOnIgnoreEnv(std::string &cppstr) { // if there is a -ignore-env, adjust options. bool optionChangable = true; @@ -250,8 +248,6 @@ int32_t Program::compile(const std::vector& devices, size_t numHeaders, const char** headerIncludeNames, const char* options, void(CL_CALLBACK* notifyFptr)(cl_program, void*), void* data, bool optionChangable) { - ScopedLock sl(buildLock_); - int32_t retval = CL_SUCCESS; // Clear the program object @@ -321,7 +317,6 @@ int32_t Program::link(const std::vector& devices, size_t numInputs, const std::vector& inputPrograms, const char* options, void(CL_CALLBACK* notifyFptr)(cl_program, void*), void* data, bool optionChangable) { - ScopedLock sl(buildLock_); int32_t retval = CL_SUCCESS; if (symbolTable_ == NULL) { @@ -489,7 +484,6 @@ void Program::StubProgramSource(const std::string& app_name) { int32_t Program::build(const std::vector& devices, const char* options, void(CL_CALLBACK* notifyFptr)(cl_program, void*), void* data, bool optionChangable, bool newDevProg) { - ScopedLock sl(buildLock_); int32_t retval = CL_SUCCESS; if (symbolTable_ == NULL) { @@ -596,8 +590,6 @@ int32_t Program::build(const std::vector& devices, const char* options, } bool Program::load(const std::vector& devices) { - ScopedLock sl(buildLock_); - for (const auto& it : devicePrograms_) { const Device& device = *(it.first); diff --git a/projects/clr/rocclr/platform/program.hpp b/projects/clr/rocclr/platform/program.hpp index f6976d04c5..ddd5ad7c1d 100644 --- a/projects/clr/rocclr/platform/program.hpp +++ b/projects/clr/rocclr/platform/program.hpp @@ -126,9 +126,6 @@ class Program : public RuntimeObject { //! Clears the program object if the app attempts to rebuild the program void clear(); - //! Global build lock (remove when LLVM is thread-safe). - static Monitor buildLock_; - public: //! Construct a new program to be compiled from the given source code. Program(Context& context, const std::string& sourceCode, Language language,