File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
torch/csrc/jit/tensorexpr Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -931,14 +931,6 @@ void CudaCodeGen::call(const std::vector<CallArg>& args) {
931931 USE_TRIGGER (cuda_codegen_executed);
932932}
933933
934- void CudaSetContext (CUcontext pctx) {
935- if (!pctx) {
936- std::unique_lock<std::mutex> cudaFreeMutexLock (
937- *(c10::cuda::CUDACachingAllocator::getFreeMutex ()));
938- cudaFree (0 );
939- }
940- }
941-
942934void CudaCodeGen::CompileToNVRTC (
943935 const std::string& code,
944936 const std::string& func_name) {
@@ -952,7 +944,6 @@ void CudaCodeGen::CompileToNVRTC(
952944 }
953945 // cudaSetDevice does not have to really change the underlying device if it
954946 // doesn't have to, so calling cudaFree to force that change
955- CudaSetContext (pctx);
956947 if (!pctx) {
957948 std::unique_lock<std::mutex> cudaFreeMutexLock (
958949 *(c10::cuda::CUDACachingAllocator::getFreeMutex ()));
You can’t perform that action at this time.
0 commit comments