brintos

brintos / llvm-project-archived public Read only

0
0
Text · 722 B · 2e098fe Raw
23 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_UTILS_GPU_TIMING_H10#define LLVM_LIBC_UTILS_GPU_TIMING_H11 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#else19#error "unsupported platform"20#endif21 22#endif // LLVM_LIBC_UTILS_GPU_TIMING_H23