Skip to content

Commit

Permalink
Merge pull request #781 from CHIP-SPV/interop-return-rcl
Browse files Browse the repository at this point in the history
SYCL-HIP Interop - Drop RCL/ICL Env var Query
  • Loading branch information
pvelesko authored Feb 23, 2024
2 parents 4cddae5 + aa028e2 commit aa42097
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,7 @@ int oneMKLGemmTest(uintptr_t* nativeHandlers, const char* hip_backend, float* A,
sycl_devices[0] = sycl_device;
sycl::context sycl_context = sycl::ext::oneapi::level_zero::make_context(sycl_devices, (pi_native_handle)hContext, 1);

bool isImmCmdList = true;
// query the environemtn for CHIP_L0_IMM_CMD_LIST flag, if it's OFF, off or 0, then set isImmCmdList to false
char* env = getenv("CHIP_L0_IMM_CMD_LIST");
if (env != NULL) {
if (!strcmp(env, "OFF") || !strcmp(env, "off") || !strcmp(env, "0")) {
isImmCmdList = false;
}
}
bool isImmCmdList = false;
#if __INTEL_LLVM_COMPILER >= 20240000
sycl_queue = sycl::ext::oneapi::level_zero::make_queue(sycl_context, sycl_device, (pi_native_handle)hQueue, isImmCmdList, 1, sycl::property::queue::in_order());
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,7 @@ int oneMKLGemmTest(uintptr_t* nativeHandlers, const char* hip_backend, float* A,
sycl_devices[0] = sycl_device;
sycl::context sycl_context = sycl::ext::oneapi::level_zero::make_context(sycl_devices, (pi_native_handle)hContext, 1);

bool isImmCmdList = true;
// query the environemtn for CHIP_L0_IMM_CMD_LIST flag, if it's OFF, off or 0, then set isImmCmdList to false
char* env = getenv("CHIP_L0_IMM_CMD_LIST");
if (env != NULL) {
if (!strcmp(env, "OFF") || !strcmp(env, "off") || !strcmp(env, "0")) {
isImmCmdList = false;
}
}

bool isImmCmdList = false;
#if __INTEL_LLVM_COMPILER >= 20240000
sycl_queue = sycl::ext::oneapi::level_zero::make_queue(sycl_context, sycl_device, (pi_native_handle)hQueue,
isImmCmdList, 1, sycl::property::queue::in_order());
Expand Down
4 changes: 2 additions & 2 deletions scripts/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export POCL_KERNEL_CACHE=0

# Use OpenCL for building/test discovery to prevent Level Zero from being used in multi-thread/multi-process environment
module use ~/modulefiles
module load $CLANG opencl/dgpu
module load mkl/2024.0 compiler/2024.0.2 $CLANG opencl/dgpu

output=$(clinfo -l 2>&1 | grep "Platform #0")
echo $output
Expand Down Expand Up @@ -151,7 +151,7 @@ else
# ../scripts/compile_libceed.sh ${CHIPSTAR_INSTALL_DIR}
fi

module unload opencl/dgpu oneapi/compiler/2023.2.3
module unload opencl/dgpu

# module load HIP/hipBLAS/main/release # for libCEED NOTE: Must be after build step otherwise it will cause link issues.

Expand Down

0 comments on commit aa42097

Please sign in to comment.