2019-08-06 21:58:28 -07:00
|
|
|
/*
|
2023-12-01 14:35:38 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2019-08-06 21:58:28 -07:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-12-13 12:22:24 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
2019-08-06 21:58:28 -07:00
|
|
|
namespace NEO {
|
|
|
|
|
namespace CpuIntrinsics {
|
|
|
|
|
|
2022-04-01 11:47:24 +00:00
|
|
|
void sfence();
|
|
|
|
|
|
2019-08-06 21:58:28 -07:00
|
|
|
void clFlush(void const *ptr);
|
|
|
|
|
|
2023-12-01 14:35:38 +00:00
|
|
|
void clFlushOpt(void *ptr);
|
|
|
|
|
|
2020-01-14 13:52:06 +01:00
|
|
|
void pause();
|
|
|
|
|
|
2023-12-13 12:22:24 +00:00
|
|
|
unsigned char umwait(unsigned int ctrl, uint64_t counter);
|
|
|
|
|
|
|
|
|
|
void umonitor(void *a);
|
|
|
|
|
|
|
|
|
|
uint64_t rdtsc();
|
|
|
|
|
|
2019-08-06 21:58:28 -07:00
|
|
|
} // namespace CpuIntrinsics
|
|
|
|
|
} // namespace NEO
|