Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
branches: [ master,release_branch* ]
pull_request:
branches: [ master,release_branch* ]
workflow_dispatch:

permissions: read-all

jobs:
build-clang-linux:
if: github.repository_owner == 'oneapi-src'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- ubuntu:22.04
- ubuntu:24.04
build_type:
- static
- dynamic
container:
image: ${{ matrix.container }}
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y clang cmake make git
- uses: actions/checkout@v4
- name: Build Loader (${{ matrix.build_type }}) with Clang on ${{ matrix.container }}
run: |
mkdir build
cd build
cmake \
-D CMAKE_C_COMPILER=clang \
-D CMAKE_CXX_COMPILER=clang++ \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_L0_LOADER_TESTS=1 \
-D INSTALL_NULL_DRIVER=1 \
-D BUILD_STATIC=${{ matrix.build_type == 'static' && '1' || '0' }} \
..
cmake --build . --config Release
7 changes: 7 additions & 0 deletions include/layers/zel_tracing_register_cb.h
Original file line number Diff line number Diff line change
Expand Up @@ -2726,9 +2726,16 @@ typedef void (ZE_APICALL *zer_pfnTranslateIdentifierToDeviceHandleCb_t)(
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wextern-c-compat"
#endif
typedef struct _zer_get_default_context_params_t
{
} zer_get_default_context_params_t;
#ifdef __clang__
#pragma clang diagnostic pop
#endif


///////////////////////////////////////////////////////////////////////////////
Expand Down
15 changes: 14 additions & 1 deletion scripts/templates/tracing/trc_setters.h.mako
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,30 @@ typedef struct _zel_tracer_handle_t *zel_tracer_handle_t;
%for obj in tbl['functions']:
<%
ret_type = obj['return_type']
params_list = th.make_param_lines(n, tags, obj, format=["type*", "name"])
is_void_params = len(params_list) == 0
%>///////////////////////////////////////////////////////////////////////////////
/// @brief Callback function parameters for ${th.make_func_name(n, tags, obj)}
/// @details Each entry is a pointer to the parameter passed to the function;
/// allowing the callback the ability to modify the parameter's value

%if is_void_params:
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wextern-c-compat"
#endif
%endif
typedef struct _${th.make_pfncb_param_type(n, tags, obj)}
{
%for line in th.make_param_lines(n, tags, obj, format=["type*", "name"]):
%for line in params_list:
${line};
%endfor
} ${th.make_pfncb_param_type(n, tags, obj)};
%if is_void_params:
#ifdef __clang__
#pragma clang diagnostic pop
#endif
%endif


///////////////////////////////////////////////////////////////////////////////
Expand Down
Loading