File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -222,8 +222,6 @@ class device_image_impl {
222
222
const pi::DeviceBinaryImage::PropertyRange &SCDefValRange =
223
223
MBinImage->getSpecConstantsDefaultValues ();
224
224
225
- bool HasDefaultValues = SCDefValRange.begin () != SCDefValRange.end ();
226
-
227
225
// This variable is used to calculate spec constant value offset in a
228
226
// flat byte array.
229
227
unsigned BlobOffset = 0 ;
@@ -256,13 +254,15 @@ class device_image_impl {
256
254
// supposed to be called from c'tor.
257
255
MSpecConstSymMap[std::string{SCName}].push_back (
258
256
SpecConstDescT{/* ID*/ It[0 ], /* CompositeOffset*/ It[1 ],
259
- /* Size*/ It[2 ], BlobOffset, HasDefaultValues });
257
+ /* Size*/ It[2 ], BlobOffset});
260
258
BlobOffset += /* Size*/ It[2 ];
261
259
It += NumElements;
262
260
}
263
261
}
264
262
MSpecConstsBlob.resize (BlobOffset);
265
263
264
+ bool HasDefaultValues = SCDefValRange.begin () != SCDefValRange.end ();
265
+
266
266
if (HasDefaultValues) {
267
267
pi::ByteArray DefValDescriptors =
268
268
pi::DeviceBinaryProperty (*SCDefValRange.begin ()).asByteArray ();
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ static sycl::unittest::PiImage generateDefaultImage() {
205
205
sycl::unittest::PiImage Img = generateDefaultImage();
206
206
sycl::unittest::PiImageArray ImgArray{Img};
207
207
208
- TEST (DefaultValues, DefaultValuesAreSet ) {
208
+ TEST (DefaultValues, DISABLED_DefaultValuesAreSet ) {
209
209
sycl::platform Plt{sycl::default_selector ()};
210
210
if (Plt.is_host ()) {
211
211
std::cerr << " Test is not supported on host, skipping\n " ;
@@ -238,7 +238,7 @@ TEST(DefaultValues, DefaultValuesAreSet) {
238
238
EXPECT_EQ (SpecConstVal1, 8 );
239
239
}
240
240
241
- TEST (DefaultValues, DefaultValuesAreOverriden ) {
241
+ TEST (DefaultValues, DISABLED_DefaultValuesAreOverriden ) {
242
242
sycl::platform Plt{sycl::default_selector ()};
243
243
if (Plt.is_host ()) {
244
244
std::cerr << " Test is not supported on host, skipping\n " ;
You can’t perform that action at this time.
0 commit comments