31 lines
412 B
C++
31 lines
412 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
namespace CpuIntrinsics {
|
|
|
|
void sfence();
|
|
|
|
void clFlush(void const *ptr);
|
|
|
|
void clFlushOpt(void *ptr);
|
|
|
|
void pause();
|
|
|
|
unsigned char umwait(unsigned int ctrl, uint64_t counter);
|
|
|
|
void umonitor(void *a);
|
|
|
|
uint64_t rdtsc();
|
|
|
|
} // namespace CpuIntrinsics
|
|
} // namespace NEO
|