[Openmp-commits] [openmp] 9aefe5f - [libomptarget][amdgcn] Correct return type of extern __clock64 to unsigned

via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 18 16:11:32 PST 2019


Author: JonChesterfield
Date: 2019-12-19T00:11:21Z
New Revision: 9aefe5f65ec6e8143f08b8e6f5b7d138d3283562

URL: https://github.com/llvm/llvm-project/commit/9aefe5f65ec6e8143f08b8e6f5b7d138d3283562
DIFF: https://github.com/llvm/llvm-project/commit/9aefe5f65ec6e8143f08b8e6f5b7d138d3283562.diff

LOG: [libomptarget][amdgcn] Correct return type of extern __clock64 to unsigned

Added: 
    

Modified: 
    openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
index 40bbf943aef5..e0d6bb1953c1 100644
--- a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
+++ b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
@@ -109,7 +109,7 @@ INLINE uint32_t __kmpc_impl_smid() {
 
 INLINE double __target_impl_get_wtick() { return ((double)1E-9); }
 
-EXTERN int64_t __clock64();
+EXTERN uint64_t __clock64();
 INLINE double __target_impl_get_wtime() {
   return ((double)1.0 / 745000000.0) * __clock64();
 }


        


More information about the Openmp-commits mailing list