From d2bf6aa4ea95f59c834013574bacedf2ba4b8994 Mon Sep 17 00:00:00 2001 From: Dark Knight Date: Thu, 26 Jun 2025 12:24:12 -0700 Subject: [PATCH] Revert D77210806 Summary: This diff reverts D77210806 (The context such as a Sandcastle job, Task, SEV, etc. was not provided.) Depends on D77210806 Reviewed By: dcci Differential Revision: D77390627 --- python/monarch/common/mock_cuda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/monarch/common/mock_cuda.cpp b/python/monarch/common/mock_cuda.cpp index 6ab2e0491..d6e9208e9 100644 --- a/python/monarch/common/mock_cuda.cpp +++ b/python/monarch/common/mock_cuda.cpp @@ -439,7 +439,7 @@ std::mutex patchedMutex; void doPatch(const char* name, void** realFns, void* toPatch, void** ourFns) { std::lock_guard guard(patchedMutex); - if (patched.contains(toPatch)) { + if (patched.count(toPatch)) { return; } patched.emplace(toPatch);