mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Debug flag to add sfence instruction prior to DirectSubmission dispatch
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
beff0019d1
commit
779bca39a7
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user