@@ -881,7 +881,6 @@ dnnl_status_t DNNL_API dnnl_memory_desc_create_with_tag(
881
881
dnnl_memory_desc_t * memory_desc , int ndims , const dnnl_dims_t dims ,
882
882
dnnl_data_type_t data_type , dnnl_format_tag_t tag );
883
883
884
- #ifdef DNNL_EXPERIMENTAL_SPARSE
885
884
/// Creates a memory descriptor for CSR encoding.
886
885
///
887
886
/// @param memory_desc Output memory descriptor.
@@ -943,7 +942,6 @@ dnnl_status_t DNNL_API dnnl_memory_desc_create_with_coo_encoding(
943
942
dnnl_status_t DNNL_API dnnl_memory_desc_create_with_packed_encoding (
944
943
dnnl_memory_desc_t * memory_desc , int ndims , const dnnl_dims_t dims ,
945
944
dnnl_data_type_t data_type , dnnl_dim_t nnz );
946
- #endif
947
945
948
946
/// Creates a memory descriptor for a region inside an area
949
947
/// described by an existing memory descriptor.
@@ -1109,7 +1107,6 @@ dnnl_status_t DNNL_API dnnl_memory_desc_permute_axes(
1109
1107
dnnl_status_t DNNL_API dnnl_memory_desc_query (
1110
1108
const_dnnl_memory_desc_t memory_desc , dnnl_query_t what , void * result );
1111
1109
1112
- #ifdef DNNL_EXPERIMENTAL_SPARSE
1113
1110
/// Queries a memory descriptor for various pieces of information. This version
1114
1111
/// support additional queries #dnnl_query_sparse_encoding, #dnnl_query_nnz_s64
1115
1112
/// #dnnl_query_num_handles_s32 and #dnnl_query_data_type for a particular
@@ -1167,7 +1164,6 @@ dnnl_status_t DNNL_API dnnl_memory_desc_query(
1167
1164
dnnl_status_t DNNL_API dnnl_memory_desc_query_v2 (
1168
1165
const_dnnl_memory_desc_t memory_desc , dnnl_query_t what , int index ,
1169
1166
void * result );
1170
- #endif
1171
1167
1172
1168
/// Compares two memory descriptors.
1173
1169
///
@@ -1188,7 +1184,6 @@ int DNNL_API dnnl_memory_desc_equal(
1188
1184
/// descriptor.
1189
1185
size_t DNNL_API dnnl_memory_desc_get_size (const_dnnl_memory_desc_t memory_desc );
1190
1186
1191
- #ifdef DNNL_EXPERIMENTAL_SPARSE
1192
1187
/// Returns the size of the data that corresponds to the given index.
1193
1188
///
1194
1189
/// @param memory_desc Memory descriptor.
@@ -1197,7 +1192,6 @@ size_t DNNL_API dnnl_memory_desc_get_size(const_dnnl_memory_desc_t memory_desc);
1197
1192
/// @returns The number of bytes required for the requested data.
1198
1193
size_t DNNL_API dnnl_memory_desc_get_size_v2 (
1199
1194
const_dnnl_memory_desc_t memory_desc , int index );
1200
- #endif
1201
1195
1202
1196
/// Returns the size of data type.
1203
1197
///
@@ -1229,7 +1223,6 @@ dnnl_status_t DNNL_API dnnl_memory_create(dnnl_memory_t *memory,
1229
1223
const_dnnl_memory_desc_t memory_desc , dnnl_engine_t engine ,
1230
1224
void * handle );
1231
1225
1232
- #ifdef DNNL_EXPERIMENTAL_SPARSE
1233
1226
/// Creates a memory object with multiple handles.
1234
1227
///
1235
1228
/// @param memory Output memory object.
@@ -1250,7 +1243,6 @@ dnnl_status_t DNNL_API dnnl_memory_create(dnnl_memory_t *memory,
1250
1243
dnnl_status_t DNNL_API dnnl_memory_create_v2 (dnnl_memory_t * memory ,
1251
1244
const_dnnl_memory_desc_t memory_desc , dnnl_engine_t engine ,
1252
1245
int nhandles , void * * handles );
1253
- #endif
1254
1246
1255
1247
/// Returns the memory descriptor for a memory object.
1256
1248
///
@@ -1296,7 +1288,6 @@ dnnl_status_t DNNL_API dnnl_memory_get_engine(
1296
1288
dnnl_status_t DNNL_API dnnl_memory_map_data (
1297
1289
const_dnnl_memory_t memory , void * * mapped_ptr );
1298
1290
1299
- #ifdef DNNL_EXPERIMENTAL_SPARSE
1300
1291
/// Maps a memory object and returns a host-side pointer to a memory buffer
1301
1292
/// with a copy of its contents. The memory buffer corresponds to the given
1302
1293
/// index.
@@ -1324,7 +1315,6 @@ dnnl_status_t DNNL_API dnnl_memory_map_data(
1324
1315
/// otherwise.
1325
1316
dnnl_status_t DNNL_API dnnl_memory_map_data_v2 (
1326
1317
const_dnnl_memory_t memory , void * * mapped_ptr , int index );
1327
- #endif
1328
1318
1329
1319
/// Unmaps a memory object and writes back any changes made to the previously
1330
1320
/// mapped memory buffer. The pointer to the mapped buffer must be obtained
@@ -1343,7 +1333,6 @@ dnnl_status_t DNNL_API dnnl_memory_map_data_v2(
1343
1333
dnnl_status_t DNNL_API dnnl_memory_unmap_data (
1344
1334
const_dnnl_memory_t memory , void * mapped_ptr );
1345
1335
1346
- #ifdef DNNL_EXPERIMENTAL_SPARSE
1347
1336
/// Unmaps a memory object and writes back any changes made to the previously
1348
1337
/// mapped memory buffer. The pointer to the mapped buffer must be obtained
1349
1338
/// via the dnnl_memory_map_data() call. The buffer corresponds to the given
@@ -1362,7 +1351,6 @@ dnnl_status_t DNNL_API dnnl_memory_unmap_data(
1362
1351
/// otherwise.
1363
1352
dnnl_status_t DNNL_API dnnl_memory_unmap_data_v2 (
1364
1353
const_dnnl_memory_t memory , void * mapped_ptr , int index );
1365
- #endif
1366
1354
1367
1355
/// Returns memory object's data handle.
1368
1356
///
@@ -1385,7 +1373,6 @@ dnnl_status_t DNNL_API dnnl_memory_get_data_handle(
1385
1373
dnnl_status_t DNNL_API dnnl_memory_set_data_handle (
1386
1374
dnnl_memory_t memory , void * handle );
1387
1375
1388
- #ifdef DNNL_EXPERIMENTAL_SPARSE
1389
1376
/// Returns an underlying memory buffer that corresponds to the given index.
1390
1377
///
1391
1378
/// @param memory Memory object.
@@ -1409,7 +1396,6 @@ dnnl_status_t DNNL_API dnnl_memory_get_data_handle_v2(
1409
1396
/// otherwise.
1410
1397
dnnl_status_t DNNL_API dnnl_memory_set_data_handle_v2 (
1411
1398
dnnl_memory_t memory , void * handle , int index );
1412
- #endif
1413
1399
1414
1400
/// Destroys a memory object.
1415
1401
///
0 commit comments