Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/deviceRTLs/target_interface.h
//===------------- target_interface.h - Target interfaces --------- C++ -*-===// | //===------------- target_interface.h - Target interfaces --------- C++ -*-===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
// This file contains interfaces that must be implemented by each target. | // This file contains interfaces that must be implemented by each target. | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#ifndef _OMPTARGET_TARGET_INTERFACE_H_ | #ifndef _OMPTARGET_TARGET_INTERFACE_H_ | ||||
#define _OMPTARGET_TARGET_INTERFACE_H_ | #define _OMPTARGET_TARGET_INTERFACE_H_ | ||||
#include "target_impl.h" | #include "target_impl.h" | ||||
Lint: Pre-merge checks: clang-tidy: error: 'target_impl.h' file not found [clang-diagnostic-error]
[[https://github. | |||||
// Calls to the NVPTX layer (assuming 1D layout) | // Calls to the NVPTX layer (assuming 1D layout) | ||||
EXTERN int GetThreadIdInBlock(); | EXTERN int GetThreadIdInBlock(); | ||||
EXTERN int GetBlockIdInKernel(); | EXTERN int GetBlockIdInKernel(); | ||||
EXTERN int GetNumberOfBlocksInKernel(); | EXTERN NOINLINE int __kmpc_get_hardware_num_blocks(); | ||||
Lint: Pre-merge checks clang-tidy: warning: invalid case style for function '__kmpc_get_hardware_num_blocks' [readability-identifier-naming] Lint: Pre-merge checks: clang-tidy: warning: invalid case style for function '__kmpc_get_hardware_num_blocks'… | |||||
EXTERN int GetNumberOfThreadsInBlock(); | EXTERN NOINLINE int __kmpc_get_hardware_num_threads_in_block(); | ||||
Lint: Pre-merge checks clang-tidy: warning: invalid case style for function '__kmpc_get_hardware_num_threads_in_block' [readability-identifier-naming] Lint: Pre-merge checks: clang-tidy: warning: invalid case style for function '__kmpc_get_hardware_num_threads_in_block'… | |||||
EXTERN unsigned GetWarpId(); | EXTERN unsigned GetWarpId(); | ||||
EXTERN unsigned GetWarpSize(); | EXTERN unsigned GetWarpSize(); | ||||
EXTERN unsigned GetLaneId(); | EXTERN unsigned GetLaneId(); | ||||
// Atomics | // Atomics | ||||
uint32_t __kmpc_atomic_add(uint32_t *, uint32_t); | uint32_t __kmpc_atomic_add(uint32_t *, uint32_t); | ||||
uint32_t __kmpc_atomic_inc(uint32_t *, uint32_t); | uint32_t __kmpc_atomic_inc(uint32_t *, uint32_t); | ||||
uint32_t __kmpc_atomic_max(uint32_t *, uint32_t); | uint32_t __kmpc_atomic_max(uint32_t *, uint32_t); | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
clang-tidy: error: 'target_impl.h' file not found [clang-diagnostic-error]
not useful