@@ -168,7 +168,7 @@ typename ReturnFunctionSignature<indxType, offsetType, ROWWISE_SPARSE>::
168168 bool areIndices64b = is_same<indxType, int64_t >::value;
169169
170170 asmjit::CodeHolder code;
171- code.init (runtime ().codeInfo ());
171+ code.init (runtime ().environment ());
172172 x86::Assembler assembler (&code);
173173 x86::Emitter* a = assembler.as <x86::Emitter>();
174174#if defined(FBGEMM_LOG_CODE)
@@ -234,30 +234,34 @@ typename ReturnFunctionSignature<indxType, offsetType, ROWWISE_SPARSE>::
234234 asmjit::FuncDetail func;
235235
236236 if (ROWWISE_SPARSE) {
237- func.init (asmjit::FuncSignatureT<
238- bool ,
239- int64_t , // output_size
240- int64_t , // index_size
241- int64_t , // uncompressed_data_size
242- const uint8_t *, // input uint8_t or float
243- const indxType*, // indices
244- const offsetType*, // offsets or lengths
245- const float *, // weights
246- float *, // out
247- const int32_t * /* compressed_indices_table */ ,
248- const int * /* mask */ >(asmjit::CallConv::kIdHost ));
237+ func.init (
238+ asmjit::FuncSignatureT<
239+ bool ,
240+ int64_t , // output_size
241+ int64_t , // index_size
242+ int64_t , // uncompressed_data_size
243+ const uint8_t *, // input uint8_t or float
244+ const indxType*, // indices
245+ const offsetType*, // offsets or lengths
246+ const float *, // weights
247+ float *, // out
248+ const int32_t * /* compressed_indices_table */ ,
249+ const int * /* mask */ >(asmjit::CallConv::kIdHost ),
250+ a->environment ());
249251 } else {
250- func.init (asmjit::FuncSignatureT<
251- bool ,
252- int64_t , // output_size
253- int64_t , // index_size
254- int64_t , // data_size
255- const uint8_t *, // input uint8_t or float
256- const indxType*, // indices
257- const offsetType*, // offsets or lengths
258- const float *, // weights
259- float *, // out
260- const int * /* mask */ >(asmjit::CallConv::kIdHost ));
252+ func.init (
253+ asmjit::FuncSignatureT<
254+ bool ,
255+ int64_t , // output_size
256+ int64_t , // index_size
257+ int64_t , // data_size
258+ const uint8_t *, // input uint8_t or float
259+ const indxType*, // indices
260+ const offsetType*, // offsets or lengths
261+ const float *, // weights
262+ float *, // out
263+ const int * /* mask */ >(asmjit::CallConv::kIdHost ),
264+ a->environment ());
261265 }
262266
263267 asmjit::FuncFrame frame;
0 commit comments