[Openmp-commits] [openmp] 696bca9 - [NFC][OpenMP][CUDA] Remove unnecessary default label

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 1 06:51:02 PDT 2022


Author: Shilei Tian
Date: 2022-07-01T09:50:29-04:00
New Revision: 696bca9bb25a036edd88d4b6cfe21740f731829d

URL: https://github.com/llvm/llvm-project/commit/696bca9bb25a036edd88d4b6cfe21740f731829d
DIFF: https://github.com/llvm/llvm-project/commit/696bca9bb25a036edd88d4b6cfe21740f731829d.diff

LOG: [NFC][OpenMP][CUDA] Remove unnecessary default label

Added: 
    

Modified: 
    openmp/libomptarget/plugins/cuda/src/rtl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
index 99739f44b95cb..6533102bb0776 100644
--- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -1088,10 +1088,6 @@ class DeviceRTLTy {
 
         return memcpyDtoD(SrcPtr, DstPtr, Size, Stream);
       }
-      default:
-        REPORT("Unknown PeerAccessState %d.\n",
-               int(PeerAccessMatrix[SrcDevId][DstDevId]));
-        return OFFLOAD_FAIL;
       }
     }
 


        


More information about the Openmp-commits mailing list