Skip to content

Commit e18a188

Browse files
committed
more script fixes
1 parent 93d91bd commit e18a188

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

samples/05_spirvkernelfromfile/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ int main(
187187
printf("Creating kernel: %s\n", kernelName.c_str() );
188188
cl::Kernel kernel = cl::Kernel{ program, kernelName.c_str() };
189189

190+
if (kernel() == nullptr) {
191+
printf("Failed to create kernel '%s' from program!\n", kernelName.c_str());
192+
return -2;
193+
}
194+
190195
cl::Buffer deviceMemDst = cl::Buffer{
191196
context,
192197
CL_MEM_ALLOC_HOST_PTR,

samples/spirv/01_spirvprobe/check_spirv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ for file in "${files[@]}"; do
3030
printf 'Running: %q --file=%q\n' "$tool" "$file"
3131
"$tool" --file="$file" > /dev/null 2>&1
3232
else
33-
printf 'Running: %q %q --file=%q\n' "$tool" "$options" "$file"
34-
"$tool" "$options" --file="$file" > /dev/null 2>&1
33+
printf 'Running: %q %q --file=%q --name="empty"\n' "$tool" "$options" "$file"
34+
"$tool" "$options" --file="$file" --name="empty" > /dev/null 2>&1
3535
fi
3636
rc=$?
3737

samples/spirv/01_spirvprobe/main.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,24 @@ int main(int argc, char** argv)
137137
#define SPIRV_PROBE_EXTENSION_CAPABILITY(_e, _c) \
138138
probes[#_e].push_back(spv::Capability##_c);
139139
#include "spirv_probes_generated.def"
140+
#if 0
141+
probes["SPV_INTEL_16bit_atomics"].push_back(6260); // AtomicInt16CompareExchangeINTEL
142+
probes["SPV_INTEL_16bit_atomics"].push_back(6261); // Int16AtomicsINTEL
143+
probes["SPV_INTEL_16bit_atomics"].push_back(6262); // AtomicBFloat16LoadStoreINTEL
144+
probes["SPV_INTEL_16bit_atomics"].push_back(6255); // AtomicBFloat16AddINTEL
145+
probes["SPV_INTEL_16bit_atomics"].push_back(6256); // AtomicBFloat16MinMaxINTEL
146+
probes["SPV_INTEL_bfloat16_arithmetic"].push_back(6226); // BFloat16ArithmeticINTEL
147+
probes["SPV_INTEL_global_variable_decorations"].push_back(6146); // GlobalVariableDecorationsINTEL
148+
probes["SPV_INTEL_joint_matrix"].push_back(6434); // PackedCooperativeMatrixINTEL
149+
probes["SPV_INTEL_joint_matrix"].push_back(6435); // CooperativeMatrixInvocationInstructionsINTEL
150+
probes["SPV_INTEL_joint_matrix"].push_back(6436); // CooperativeMatrixTF32ComponentTypeINTEL
151+
probes["SPV_INTEL_joint_matrix"].push_back(6437); // CooperativeMatrixBFloat16ComponentTypeINTEL
152+
probes["SPV_INTEL_joint_matrix"].push_back(6411); // CooperativeMatrixPrefetchINTEL
153+
probes["SPV_INTEL_sigmoid"].push_back(6167); // SigmoidINTEL
154+
// TODO SPV_INTEL_​subgroup_​matrix_​multiply_​accumulate_​float4
155+
// TODO SPV_INTEL_​subgroup_​matrix_​multiply_​accumulate_​float8
156+
probes["SPV_INTEL_subgroup_scaled_matrix_multiply_accumulate"].push_back(6263); // SubgroupScaledMatrixMultiplyAccumulateINTEL
157+
#endif
140158
#undef SPIRV_PROBE_EXTENSION
141159
#undef SPIRV_PROBE_EXTENSION_CAPABILITY
142160

0 commit comments

Comments
 (0)