Skip to content

Commit b0ed0dc

Browse files
Generate spirv builtins without specifying a device
Signed-off-by: Filip Hazubski <[email protected]>
1 parent 4f54ea5 commit b0ed0dc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

shared/source/built_ins/kernels/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,9 @@ function(generate_cpp_spirv builtin)
127127

128128
set(OUTPUT_LIST_SPV_FILES ${OUTPUT_LIST_SPV_FILES} ${OUTPUT_FILES_FOR_SPV} PARENT_SCOPE)
129129
set(OUTPUT_LIST_CPP_FILES ${OUTPUT_LIST_CPP_FILES} ${OUTPUT_FILE_CPP} PARENT_SCOPE)
130-
string(TOLOWER ${DEFAULT_SUPPORTED_PLATFORM} DEF_PLATFORM)
131130
add_custom_command(
132131
OUTPUT ${GENERATED_SPV_INPUT}
133-
COMMAND ${cloc_cmd_prefix} -q -spv_only -file ${INPUT_FILENAME} -device ${DEF_PLATFORM} -out_dir ${OUTPUTDIR} -output_no_suffix -options "-cl-kernel-arg-info"
132+
COMMAND ${cloc_cmd_prefix} -q -spv_only -file ${INPUT_FILENAME} -out_dir ${OUTPUTDIR} -output_no_suffix -options "-cl-kernel-arg-info"
134133
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
135134
DEPENDS ${INPUT_FILENAME} ocloc copy_compiler_files
136135
)

shared/test/unit_test/test_macros/test_checks_shared.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ bool supportsSvm(const Device *pDevice);
2626

2727
} // namespace NEO
2828

29+
#define REQUIRE_32BIT_OR_SKIP() \
30+
if (NEO::TestChecks::is64Bit() == true) { \
31+
GTEST_SKIP(); \
32+
}
33+
2934
#define REQUIRE_64BIT_OR_SKIP() \
3035
if (NEO::TestChecks::is64Bit() == false) { \
3136
GTEST_SKIP(); \

0 commit comments

Comments
 (0)