• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===------------- Implementation of GPU timing utils -----------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_H
10 #define LLVM_LIBC_UTILS_GPU_TIMING_H
11 
12 #include "src/__support/macros/properties/architectures.h"
13 
14 #if defined(LIBC_TARGET_ARCH_IS_AMDGPU)
15 #include "amdgpu/timing.h"
16 #elif defined(LIBC_TARGET_ARCH_IS_NVPTX)
17 #include "nvptx/timing.h"
18 #else
19 #error "unsupported platform"
20 #endif
21 
22 #endif // LLVM_LIBC_UTILS_GPU_TIMING_H
23