Skip to content

Commit

Permalink
Merge pull request #1930 from oneapi-src/benie/no-import-in-pragma-re…
Browse files Browse the repository at this point in the history
…gion

Make pragma region names joined by _
  • Loading branch information
kbenzie authored Aug 7, 2024
2 parents 6b2e678 + d6e93fa commit 2d3524e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -3797,7 +3797,7 @@ urUSMPoolGetInfo(
#endif
// Intel 'oneAPI' Unified Runtime APIs
#if !defined(__GNUC__)
#pragma region virtual memory
#pragma region virtual_memory
#endif
///////////////////////////////////////////////////////////////////////////////
/// @brief Virtual memory granularity info
Expand Down Expand Up @@ -7354,7 +7354,7 @@ urEnqueueWriteHostPipe(
#endif
// Bindless Images Extension APIs
#if !defined(__GNUC__)
#pragma region bindless images(experimental)
#pragma region bindless_images_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
/// @brief Handle of bindless image
Expand Down Expand Up @@ -8152,7 +8152,7 @@ urBindlessImagesSignalExternalSemaphoreExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental APIs for Command-Buffers
#if !defined(__GNUC__)
#pragma region command buffer(experimental)
#pragma region command_buffer_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
/// @brief Command-buffer query information type
Expand Down Expand Up @@ -9005,7 +9005,7 @@ urCommandBufferCommandGetInfoExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental APIs for Cooperative Kernels
#if !defined(__GNUC__)
#pragma region cooperative kernels(experimental)
#pragma region cooperative_kernels_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
#ifndef UR_COOPERATIVE_KERNELS_EXTENSION_STRING_EXP
Expand Down Expand Up @@ -9093,7 +9093,7 @@ urKernelSuggestMaxCooperativeGroupCountExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental APIs for enqueuing timestamp recordings
#if !defined(__GNUC__)
#pragma region enqueue timestamp recording(experimental)
#pragma region enqueue_timestamp_recording_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
/// @brief Enqueue a command for recording the device timestamp
Expand Down Expand Up @@ -9135,7 +9135,7 @@ urEnqueueTimestampRecordingExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental APIs for (kernel) Launch Properties
#if !defined(__GNUC__)
#pragma region launch properties(experimental)
#pragma region launch_properties_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
#ifndef UR_LAUNCH_PROPERTIES_EXTENSION_STRING_EXP
Expand Down Expand Up @@ -9262,7 +9262,7 @@ urEnqueueKernelLaunchCustomExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental APIs for multi-device compile
#if !defined(__GNUC__)
#pragma region multi device compile(experimental)
#pragma region multi_device_compile_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
#ifndef UR_MULTI_DEVICE_COMPILE_EXTENSION_STRING_EXP
Expand Down Expand Up @@ -9392,7 +9392,7 @@ urProgramLinkExp(
#endif
// Intel 'oneAPI' USM Import/Release Extension APIs
#if !defined(__GNUC__)
#pragma region usm import release(experimental)
#pragma region usm_import_release_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
/// @brief Import memory into USM
Expand Down Expand Up @@ -9445,7 +9445,7 @@ urUSMReleaseExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental APIs for USM P2P
#if !defined(__GNUC__)
#pragma region usm p2p(experimental)
#pragma region usm_p2p_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
#ifndef UR_USM_P2P_EXTENSION_STRING_EXP
Expand Down Expand Up @@ -9601,7 +9601,7 @@ urUsmP2PPeerAccessGetInfoExp(
#endif
// Intel 'oneAPI' Unified Runtime Experimental API for enqueuing work through native APIs
#if !defined(__GNUC__)
#pragma region native enqueue(experimental)
#pragma region native_enqueue_(experimental)
#endif
///////////////////////////////////////////////////////////////////////////////
/// @brief Native enqueue properties
Expand Down
2 changes: 1 addition & 1 deletion scripts/templates/api.h.mako
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extern "C" {
%if len(spec['objects']):
// ${th.subt(n, tags, spec['header']['desc'])}
#if !defined(__GNUC__)
#pragma region ${spec['name']}
#pragma region ${spec['name'].replace(' ', '_')}
#endif
%endif
%for obj in spec['objects']:
Expand Down

0 comments on commit 2d3524e

Please sign in to comment.