@@ -107,10 +107,11 @@ add_eudslpygen(eudslpy-gen EUDSLPY
107107 src/eudslpy-gen.cpp
108108)
109109
110- eudslpygen(EUDSLGenacc
111- ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
112- NAMESPACES mlir::acc mlir::acc::detail
113- )
110+ # too big
111+ # eudslpygen(EUDSLGenacc
112+ # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
113+ # NAMESPACES mlir::acc mlir::acc::detail
114+ # )
114115
115116eudslpygen(EUDSLGenaffine
116117 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -140,10 +141,11 @@ eudslpygen(EUDSLGenarm_neon
140141 NAMESPACES mlir::arm_neon mlir::arm_neon::detail
141142)
142143
143- eudslpygen(EUDSLGenarm_sme
144- ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
145- NAMESPACES mlir::arm_sme mlir::arm_sme::detail
146- )
144+ # too big
145+ # eudslpygen(EUDSLGenarm_sme
146+ # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
147+ # NAMESPACES mlir::arm_sme mlir::arm_sme::detail
148+ # )
147149
148150eudslpygen(EUDSLGenarm_sve
149151 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -180,10 +182,10 @@ eudslpygen(EUDSLGenDLTIDialect
180182 NAMESPACES mlir::DLTIDialect mlir::DLTIDialect::detail
181183)
182184
183- # eudslpygen(EUDSLGenemitc
184- # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
185- # NAMESPACES mlir::emitc mlir::emitc::detail
186- # )
185+ eudslpygen(EUDSLGenemitc
186+ ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
187+ NAMESPACES mlir::emitc mlir::emitc::detail
188+ )
187189
188190eudslpygen(EUDSLGenfunc
189191 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -216,10 +218,10 @@ eudslpygen(EUDSLGenlinalg
216218 NAMESPACES mlir::linalg mlir::linalg::detail
217219)
218220
219- # eudslpygen(EUDSLGenLLVM
220- # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
221- # NAMESPACES mlir::LLVM mlir::LLVM::detail
222- # )
221+ eudslpygen(EUDSLGenLLVM
222+ ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
223+ NAMESPACES mlir::LLVM mlir::LLVM::detail
224+ )
223225
224226eudslpygen(EUDSLGenmath
225227 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -318,12 +320,14 @@ eudslpygen(EUDSLGensparse_tensor
318320 NAMESPACES mlir::sparse_tensor mlir::sparse_tensor::detail
319321)
320322
321- eudslpygen(EUDSLGenspirv
322- ${MLIR_INCLUDE_DIR} /mlir/Dialect/SPIRV/IR/SPIRVOps.h
323- NAMESPACES mlir::spirv mlir::spirv::detail
324- EXTRA_INCLUDES
325- mlir/Dialect/SPIRV/IR/SPIRVOps.h
326- )
323+ # nb::detail::nb_func_new("get_vce_triple_attr_name"): mismatched static/instance method flags in function overloads!
324+ # eudslpygen(EUDSLGenspirv
325+ # ${MLIR_INCLUDE_DIR}/mlir/Dialect/SPIRV/IR/SPIRVOps.h
326+ # NAMESPACES mlir::spirv mlir::spirv::detail
327+ # EXTRA_INCLUDES
328+ # mlir/Dialect/SPIRV/IR/SPIRVOps.h
329+ # mlir/IR/PatternMatch.h
330+ # )
327331
328332eudslpygen(EUDSLGentensor
329333 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -355,107 +359,62 @@ eudslpygen(EUDSLGenx86vector
355359 NAMESPACES mlir::x86vector mlir::x86vector::detail
356360)
357361
358- # eudslpygen(EUDSLGenxegpu
359- # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
360- # NAMESPACES mlir::xegpu mlir::xegpu::detail
361- # )
362+ eudslpygen(EUDSLGenxegpu
363+ ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
364+ NAMESPACES mlir::xegpu mlir::xegpu::detail
365+ )
362366
363367nanobind_add_module(eudslpy_ext
364368 NB_STATIC
365369 NB_DOMAIN eudsl
366370 src/eudslpy_ext.cpp
367- ${EUDSLGenacc_GENERATED_SHARDS}
368- ${EUDSLGenaffine_GENERATED_SHARDS}
369- ${EUDSLGenamdgpu_GENERATED_SHARDS}
370- ${EUDSLGenamx_GENERATED_SHARDS}
371- ${EUDSLGenarith_GENERATED_SHARDS}
372- ${EUDSLGenarm_neon_GENERATED_SHARDS}
373- ${EUDSLGenarm_sme_GENERATED_SHARDS}
374- ${EUDSLGenarm_sve_GENERATED_SHARDS}
375- ${EUDSLGenasync_GENERATED_SHARDS}
376- ${EUDSLGenbufferization_GENERATED_SHARDS}
377- ${EUDSLGencf_GENERATED_SHARDS}
378- ${EUDSLGencomplex_GENERATED_SHARDS}
379- ${EUDSLGenDLTIDialect_GENERATED_SHARDS}
380- # ${EUDSLGenemitc_GENERATED_SHARDS}
381- ${EUDSLGenfunc_GENERATED_SHARDS}
382- ${EUDSLGengpu_GENERATED_SHARDS}
383- ${EUDSLGenindex_GENERATED_SHARDS}
384- # ${EUDSLGenirdl_GENERATED_SHARDS}
385- # ${EUDSLGenlinalg_GENERATED_SHARDS}
386- # ${EUDSLGenLLVM_GENERATED_SHARDS}
387- ${EUDSLGenmath_GENERATED_SHARDS}
388- ${EUDSLGenmemref_GENERATED_SHARDS}
389- ${EUDSLGenmesh_GENERATED_SHARDS}
390- ${EUDSLGenml_program_GENERATED_SHARDS}
391- ${EUDSLGenmpi_GENERATED_SHARDS}
392- ${EUDSLGennvgpu_GENERATED_SHARDS}
393- ${EUDSLGenNVVM_GENERATED_SHARDS}
394- # ${EUDSLGenomp_GENERATED_SHARDS}
395- ${EUDSLGenpdl_GENERATED_SHARDS}
396- ${EUDSLGenpdl_interp_GENERATED_SHARDS}
397- ${EUDSLGenpolynomial_GENERATED_SHARDS}
398- ${EUDSLGenptr_GENERATED_SHARDS}
399- ${EUDSLGenquant_GENERATED_SHARDS}
400- ${EUDSLGenROCDL_GENERATED_SHARDS}
401- # ${EUDSLGenscf_GENERATED_SHARDS}
402- # ${EUDSLGenshape_GENERATED_SHARDS}
403- ${EUDSLGensparse_tensor_GENERATED_SHARDS}
404- # ${EUDSLGenspirv_GENERATED_SHARDS}
405- ${EUDSLGentensor_GENERATED_SHARDS}
406- ${EUDSLGentosa_GENERATED_SHARDS}
407- ${EUDSLGentransform_GENERATED_SHARDS}
408- ${EUDSLGenub_GENERATED_SHARDS}
409- # ${EUDSLGenvector_GENERATED_SHARDS}
410- ${EUDSLGenx86vector_GENERATED_SHARDS}
411- # ${EUDSLGenxegpu_GENERATED_SHARDS}
412- )
413- add_dependencies (eudslpy_ext
414- EUDSLGenacc
371+ )
372+ target_link_libraries (eudslpy_ext PRIVATE
373+ # EUDSLGenacc
415374 EUDSLGenaffine
416375 EUDSLGenamdgpu
417376 EUDSLGenamx
418377 EUDSLGenarith
419378 EUDSLGenarm_neon
420- EUDSLGenarm_sme
379+ # EUDSLGenarm_sme
421380 EUDSLGenarm_sve
422381 EUDSLGenasync
423382 EUDSLGenbufferization
424383 EUDSLGencf
425384 EUDSLGencomplex
426385 EUDSLGenDLTIDialect
427- # EUDSLGenemitc
386+ EUDSLGenemitc
428387 EUDSLGenfunc
429388 EUDSLGengpu
430389 EUDSLGenindex
431- # EUDSLGenirdl
432- # EUDSLGenlinalg
433- # EUDSLGenLLVM
390+ # EUDSLGenirdl
391+ EUDSLGenlinalg
392+ EUDSLGenLLVM
434393 EUDSLGenmath
435394 EUDSLGenmemref
436395 EUDSLGenmesh
437396 EUDSLGenml_program
438397 EUDSLGenmpi
439398 EUDSLGennvgpu
440399 EUDSLGenNVVM
441- # EUDSLGenomp
400+ # EUDSLGenomp
442401 EUDSLGenpdl
443402 EUDSLGenpdl_interp
444403 EUDSLGenpolynomial
445404 EUDSLGenptr
446405 EUDSLGenquant
447406 EUDSLGenROCDL
448- # EUDSLGenscf
449- # EUDSLGenshape
407+ EUDSLGenscf
408+ EUDSLGenshape
450409 EUDSLGensparse_tensor
451410 # EUDSLGenspirv
452411 EUDSLGentensor
453412 EUDSLGentosa
454413 EUDSLGentransform
455414 EUDSLGenub
456- # EUDSLGenvector
415+ # EUDSLGenvector
457416 EUDSLGenx86vector
458- # EUDSLGenxegpu
417+ EUDSLGenxegpu
459418)
460419set_target_properties (eudslpy_ext
461420 PROPERTIES
@@ -503,7 +462,8 @@ target_compile_options(eudslpy_ext PRIVATE ${nanobind_options})
503462target_compile_options (nanobind-static PRIVATE ${nanobind_options} )
504463
505464# note WORKING_DIRECTORY
506- set (NB_STUBGEN_CMD "${Python_EXECUTABLE} " "-m" "nanobind.stubgen" --module eudslpy_ext --recursive --include -private --output -dir .)
465+ set (NB_STUBGEN_CMD "${Python_EXECUTABLE} " "-m" "nanobind.stubgen"
466+ --module eudslpy_ext --recursive --include -private --output -dir .)
507467set (NB_STUBGEN_OUTPUTS "__init__.pyi" )
508468add_custom_command (
509469 OUTPUT ${NB_STUBGEN_OUTPUTS}
0 commit comments