Debug flag to add sfence instruction prior to DirectSubmission dispatch

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-04-01 11:47:24 +00:00
committed by Compute-Runtime-Automation
parent beff0019d1
commit 779bca39a7
8 changed files with 62 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -20,6 +20,10 @@ void clFlush(void const *ptr) {
_mm_clflush(ptr);
}
void sfence() {
_mm_sfence();
}
void pause() {
_mm_pause();
}