Skip to content

Commit e2f8194

Browse files
committed
Cat setvars.sh
1 parent f51eb44 commit e2f8194

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/generate_coverage.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
echo "Looking for undefined symbols in libmkl_sycl_vm.so.5:"
6868
sudo nm -A -u /opt/intel/oneapi/mkl/2025.0/lib/libmkl_sycl_vm.so.5
6969
70+
- name: Cat setvars.sh
71+
run: cat /opt/intel/oneapi/setvars.sh
72+
7073
- name: Create test file
7174
uses: 1arp/[email protected]
7275
with:
@@ -181,6 +184,9 @@ jobs:
181184
echo "Grep for SubmissionInfo:"
182185
sudo nm -A /opt/intel/oneapi/mkl/2025.1/lib/libmkl_sycl_vm.so.5 | grep SubmissionInfo
183186
187+
- name: Cat setvars.sh
188+
run: cat /opt/intel/oneapi/setvars.sh
189+
184190
- name: Create test file
185191
uses: 1arp/[email protected]
186192
with:
@@ -439,6 +445,52 @@ jobs:
439445
mamba info
440446
mamba list
441447
448+
- name: Create test file
449+
uses: 1arp/[email protected]
450+
with:
451+
path: 'example'
452+
isAbsolutePath: false
453+
file: 'test.cpp'
454+
content: |
455+
#include <sycl/sycl.hpp>
456+
#include <oneapi/mkl.hpp>
457+
458+
namespace mkl_vm = oneapi::mkl::vm;
459+
460+
int main(void)
461+
{
462+
sycl::queue q{sycl::default_selector_v};
463+
464+
const auto &dev = q.get_device();
465+
std::cout << "Device: " << dev.get_info<sycl::info::device::name>() << std::endl;
466+
std::cout << "Driver_version: " << dev.get_info<sycl::info::device::driver_version>() << std::endl;
467+
468+
using T = float;
469+
constexpr std::size_t size = 10;
470+
471+
T *data = sycl::malloc_device<T>(size, q);
472+
T *res = sycl::malloc_device<T>(size, q);
473+
474+
auto fill_ev = q.fill<T>(data, T(-1.0), size);
475+
476+
mkl_vm::abs(q, size, data, res, {fill_ev}).wait_and_throw();
477+
478+
sycl::free(data, q);
479+
sycl::free(res, q);
480+
481+
std::cout << "Exit" << std::endl;
482+
return 0;
483+
}
484+
485+
- name: Cat test file
486+
run: cat example/test.cpp
487+
488+
- name: Build & Run test file
489+
run: |
490+
[ -f /opt/intel/oneapi/setvars.sh ] && source /opt/intel/oneapi/setvars.sh
491+
icpx -fsycl test.cpp -DMKL_ILP64 -qmkl-ilp64=parallel -qtbb -o test.x
492+
working-directory: example
493+
442494
- name: Build dpnp with coverage
443495
id: build_coverage
444496
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2

0 commit comments

Comments
 (0)