diff options
author | Luo Xionghu <xionghu.luo@intel.com> | 2015-06-29 15:22:18 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-06-30 14:25:16 +0800 |
commit | 9496f744b51976bc6ba1a47d093454df69b739a9 (patch) | |
tree | 2425ab60274d4ecc661f7c63753faf6395540198 /src/cl_context.c | |
parent | e03643bd7247e11788bf257aa75bff49227e9806 (diff) | |
download | beignet-9496f744b51976bc6ba1a47d093454df69b739a9.tar.gz |
use self test to determine enable/or disable atomics in L3 for HSW.
check the selftest kernel return value, if enqueue kernel failed,
set the flag to not enable atomics the L3 for HSW.
This reverts commit 83f8739b6fc4893fac60145326052ccb5cf653dc.
v2: don't use global variable to pass value from runtime to driver.
v3: add type SELF_TEST_OTHER_FAIL to differentiate from SELF_TEST_ATOMIC_FAIL;
seperate the ATOMIC_FAIL from SLM_FAIL, only SLM_FAIL can be control by
env OCL_IGNORE_SELF_TEST.
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com>
Reviewed-by: Yang, Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_context.c')
-rw-r--r-- | src/cl_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_context.c b/src/cl_context.c index 0f08e6ad..773f545b 100644 --- a/src/cl_context.c +++ b/src/cl_context.c @@ -149,6 +149,7 @@ cl_create_context(const cl_context_properties * properties, /* Save the user callback and user data*/ ctx->pfn_notify = pfn_notify; ctx->user_data = user_data; + cl_driver_set_atomic_flag(ctx->drv, ctx->device->atomic_test_result); exit: if (errcode_ret != NULL) |