Skip to content

Commit 05ccb88

Browse files
committed
Add small example to test the issue
1 parent ccd8f78 commit 05ccb88

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

.github/workflows/generate_coverage.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,54 @@ jobs:
6666
sudo LD_LIBRARY_PATH="/opt/intel/oneapi/compiler/2025.0/lib" ldd /opt/intel/oneapi/mkl/2025.0/lib/libmkl_sycl_vm.so.5
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
69-
echo "Grep for SubmissionInfo:"
70-
sudo nm -A /opt/intel/oneapi/mkl/2025.0/lib/libmkl_sycl_vm.so.5 | grep SubmissionInfo
69+
70+
- name: Create test file
71+
uses: 1arp/[email protected]
72+
with:
73+
path: 'example'
74+
isAbsolutePath: false
75+
file: 'test.cpp'
76+
content: |
77+
#include <sycl/sycl.hpp>
78+
#include <oneapi/mkl.hpp>
79+
80+
namespace mkl_vm = oneapi::mkl::vm;
81+
82+
int main(void)
83+
{
84+
sycl::queue q{sycl::default_selector_v};
85+
86+
const auto &dev = q.get_device();
87+
std::cout << "Device: " << dev.get_info<sycl::info::device::name>() << std::endl;
88+
std::cout << "Driver_version: " << dev.get_info<sycl::info::device::driver_version>() << std::endl;
89+
90+
using T = float;
91+
constexpr std::size_t size = 10;
92+
93+
T *data = sycl::malloc_device<T>(size, q);
94+
T *res = sycl::malloc_device<T>(size, q);
95+
96+
auto fill_ev = q.fill<T>(data, T(-1.0), size);
97+
98+
mkl_vm::abs(q, size, data, res, {fill_ev}).wait_and_throw();
99+
100+
sycl::free(data, q);
101+
sycl::free(res, q);
102+
103+
std::cout << "Exit" << std::endl;
104+
return 0;
105+
}
106+
107+
- name: Cat test file
108+
run: cat example/test.cpp
109+
110+
- name: Build test file
111+
run: icpx -fsycl test.cpp -DMKL_ILP64 -qmkl-ilp64=parallel -qtbb -o test.x
112+
working-directory: example
113+
114+
- name: Run test file
115+
run: ./test.x
116+
working-directory: example
71117

72118
new-release:
73119
name: Install oneAPI with 2025.1

0 commit comments

Comments
 (0)