nbxtensor 0.0.8__tar.gz → 0.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/CHANGELOG.md +16 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/PKG-INFO +1 -1
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/pyproject.toml +1 -1
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/__init__.py +1 -1
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/__main__.py +7 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu/blas.py +28 -3
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/install_metal.py +37 -8
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/.gitignore +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/CONTRIBUTING.md +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/LICENSE +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/NOTICE +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/README.md +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/THIRD_PARTY_NOTICES.md +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/assets/logo.png +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/capabilities.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu/pool.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu_backend.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/device_facts.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/device_files.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/device_names.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/faults.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/host_memory.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/install_help.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/install_steps.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/launcher.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/launcher_contract.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/level_zero.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/level_zero_driver.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/libnames.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/metal_backend.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/metal_device.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/process_memory.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/replay_graph.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/runtime.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/convert.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/dtypes.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/itemsize.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/operands.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/outputs.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/policy.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/policy.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/dtype/promotion.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/host.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/io/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/io/read_rate.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/io/safetensors.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/allocator.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/arena.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/device_memory.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/device_transfer.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/kv_session.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/layout.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/memory_pool.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/metal.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/oom_advice.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/paged_kv.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/pages.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/pointer_tables.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/pool.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/shadow.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/slab.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/trace_replay.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/memory/vmm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/_autotune_policy.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/_common.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/_configs.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/_cost.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/abs.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/add.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/addcdiv.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/addcmul.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/addmv_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/addr.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/all_reduce.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/amax.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/any_reduce.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/arange_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/argmax.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/argmin.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/atan2.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/attention_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_bucket.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_cache.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_certified.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_refusals.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_settings.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/avg_pool2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/baddbmm_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/batch_norm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/binary_strided.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_and.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_not.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_or.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/bucketize.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/cat_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/celu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/certified_index.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/clamp.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/clamp_min.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/copy.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/copy_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/cos.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/count_nonzero.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/cross_entropy.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/cummax.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/cummin.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/cumsum.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/dequant_gemv.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/dft.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/dispatch.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/div.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/dot_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/dropout.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/dtype_convert.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/elementwise_launch.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/elu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/embedding.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/eq.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/erf.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/exp.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/exp2.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/fft_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/fill_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/flash_attention.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/flash_decode.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/flip_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/floor.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/full_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/fused_moe.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/gather_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/ge.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/gelu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/gemv_vec.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/glu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/grid_sampler.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/groupnorm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/gt.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/hardsigmoid.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/hardswish.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/im2col.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_add.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_put_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_select.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/isfinite.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/isinf.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/isnan.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/launch_keys.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/launch_observer.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/layernorm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/le.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/leaky_relu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/lerp.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/linspace_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/log.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/log_sigmoid.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_and.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_not.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_or.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_xor.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/loss_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/lt.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/masked_fill.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/matmul.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/max_pool2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/max_pool3d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/max_reduce.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/maximum.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/mean.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/min_reduce.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/minimum.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/mish.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_align.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_device_residency.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/mse_loss.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/mul.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/nan_to_num.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/ne.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/neg.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/nllloss.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/nonzero.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/nonzero_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/norm_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/ones_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/oracles/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/pad_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/pow.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/prod.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/rand_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/random_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/reciprocal.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/relu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/remainder.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/repeat_interleave.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/repeat_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/residual_chain.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/rmsnorm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/rope.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/rsqrt.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/scaled_softmax.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/scatter_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/screen_oracle.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/selu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/shape_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/sigmoid.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/silu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/sin.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/softmax.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/softplus.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/sort_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/sqrt.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/stack_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/std.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/strided_copy.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/sub.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/sum.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/tan.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/tanh.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/threshold.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/tiling.yml +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/tiling_policy.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/tiling_sizes.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/topk.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/trace_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/tril.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/triu.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/unfold_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/unique_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/var.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/vector_norm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/weight_norm.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/where.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/wrappers.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/ops/zeros_op.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/quant/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/quant/quantized_tensor.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/random/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/random/mt_randn.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/random/rng_pin.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/random/rng_stream.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/random/seeded_draw.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/shape/__init__.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/tensor.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/src/nbxtensor/terminal.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/tools/device_key_census.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/tools/device_key_trace.py +0 -0
- {nbxtensor-0.0.8 → nbxtensor-0.0.9}/tools/scatter_scan.py +0 -0
|
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.0.9] - 2026-11-09
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **`python -m nbxtensor install-metal` installs the macOS 14 Metal wheels and CPython 3.10-3.13**: 0.0.8 carried the
|
|
14
|
+
macOS 15 / CPython 3.12 build only and refused every other Python by name. The table now holds the triton-ext release
|
|
15
|
+
apple-v0.1.0+triton3.8.0-macos14 (Triton 3.8.0 and nbx-triton-apple 0.1.0, macOS 14.0 arm64, CPython 3.10, 3.11,
|
|
16
|
+
3.12 and 3.13, each sha256 read on the downloaded file and equal to the release's SHA256SUMS) beside the macOS 15.0
|
|
17
|
+
build of CPython 3.12. A Python tag may carry one build per minimum macOS: the Mac installs the newest build its
|
|
18
|
+
macOS satisfies (CPython 3.12 on macOS 15 or later keeps the 15.0 build), and a Mac older than every build is
|
|
19
|
+
refused naming the macOS it needs.
|
|
20
|
+
- **The CPU pool runs on macOS 14**: Accelerate before macOS 15 has no `BLASSetThreading`, and 0.0.8 then knew no BLAS
|
|
21
|
+
of the process and raised at the pool's setup, so every Triton run stopped at start on macOS 14. That Accelerate is
|
|
22
|
+
now its own kind (`ACCELERATE_UNCONTROLLED`): its threads are not set (results unchanged; a `parallel_for` piece may
|
|
23
|
+
use Accelerate's own threads beside the pool's), `python -m nbxtensor doctor` names it, and `VECLIB_MAXIMUM_THREADS=1`
|
|
24
|
+
set before Python starts stays the user's choice (nbxtensor never sets it).
|
|
25
|
+
|
|
10
26
|
## [0.0.8] - 2026-11-09
|
|
11
27
|
|
|
12
28
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: nbxtensor
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Summary: Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs.
|
|
5
5
|
Project-URL: Homepage, https://github.com/NeuroBrix/nbxtensor
|
|
6
6
|
Project-URL: Source, https://github.com/NeuroBrix/nbxtensor
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nbxtensor"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.9"
|
|
8
8
|
description = "Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "Apache-2.0" }
|
|
@@ -18,6 +18,13 @@ def doctor() -> int:
|
|
|
18
18
|
except RuntimeError as exc:
|
|
19
19
|
backend = None
|
|
20
20
|
print(f"backend in force: none — {str(exc).splitlines()[0]}")
|
|
21
|
+
if sys.platform == "darwin":
|
|
22
|
+
from nbxtensor.backend.cpu import blas
|
|
23
|
+
try:
|
|
24
|
+
if blas.blas()[0] == blas.ACCELERATE_UNCONTROLLED:
|
|
25
|
+
print(blas.uncontrolled_note())
|
|
26
|
+
except RuntimeError as exc: # a BLAS whose threads nbxtensor cannot set: said, by name
|
|
27
|
+
print(f"BLAS: {exc}")
|
|
21
28
|
if backend != "metal" or install_help.pci_gpus(): # a Mac has no PCI GPU to report: nothing to install there
|
|
22
29
|
print(install_help.report())
|
|
23
30
|
return 0
|
|
@@ -10,6 +10,10 @@ Through the BLAS's own symbols, found in the process (no new dependency):
|
|
|
10
10
|
|
|
11
11
|
- Apple's Accelerate (`BLASSetThreading`, macOS 15+): a setting PER THREAD, multi-threaded (Accelerate chooses how
|
|
12
12
|
many) or single-threaded — the pool's threads are set single-threaded when they start;
|
|
13
|
+
- Accelerate before macOS 15 (`ACCELERATE_UNCONTROLLED`): no thread control at all (BLASSetThreading is macOS 15.0+;
|
|
14
|
+
Apple's one lever, `VECLIB_MAXIMUM_THREADS`, is read when Accelerate loads, before any library can set it). The kind
|
|
15
|
+
is named (doctor, a DEBUG line once), its threads are not set — the results are the same, a `parallel_for` piece may
|
|
16
|
+
use Accelerate's own threads beside the pool's — and the variable stays the user's choice, never set here;
|
|
13
17
|
- OpenBLAS (numpy's wheels on Linux; `openblas_set_num_threads` / `scipy_openblas_set_num_threads64_`): a count for
|
|
14
18
|
the PROCESS — set to 1 while `parallel_for` runs, the pool's size otherwise.
|
|
15
19
|
|
|
@@ -19,12 +23,18 @@ from __future__ import annotations
|
|
|
19
23
|
|
|
20
24
|
import ctypes
|
|
21
25
|
import functools
|
|
26
|
+
import logging
|
|
22
27
|
import platform
|
|
23
28
|
import sys
|
|
24
29
|
from pathlib import Path
|
|
25
30
|
from typing import Optional, Tuple
|
|
26
31
|
|
|
27
|
-
__all__ = ["blas", "set_blas_threads", "blas_threads_of_this_thread"]
|
|
32
|
+
__all__ = ["blas", "set_blas_threads", "blas_threads_of_this_thread", "ACCELERATE_UNCONTROLLED", "uncontrolled_note"]
|
|
33
|
+
|
|
34
|
+
_LOG = logging.getLogger(__name__)
|
|
35
|
+
|
|
36
|
+
#: the kind of Accelerate without BLASSetThreading (macOS < 15)
|
|
37
|
+
ACCELERATE_UNCONTROLLED = "accelerate_uncontrolled"
|
|
28
38
|
|
|
29
39
|
_ACCELERATE = "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib"
|
|
30
40
|
_OPENBLAS_SET = ("scipy_openblas_set_num_threads64_", "scipy_openblas_set_num_threads", "openblas_set_num_threads64_",
|
|
@@ -56,8 +66,9 @@ def _loaded_openblas() -> Optional[str]:
|
|
|
56
66
|
|
|
57
67
|
@functools.lru_cache(maxsize=1)
|
|
58
68
|
def blas() -> Tuple[str, object]:
|
|
59
|
-
"""(kind, library) of the BLAS numpy runs in this process: ("accelerate", libBLAS)
|
|
60
|
-
library); refused by name
|
|
69
|
+
"""(kind, library) of the BLAS numpy runs in this process: ("accelerate", libBLAS), (ACCELERATE_UNCONTROLLED,
|
|
70
|
+
libBLAS) on a macOS whose Accelerate has no BLASSetThreading, or ("openblas", the loaded library); refused by name
|
|
71
|
+
otherwise."""
|
|
61
72
|
import numpy # noqa: F401 — numpy loads its BLAS; the library is the one already in the process
|
|
62
73
|
if platform.system() == "Darwin":
|
|
63
74
|
# a system library lives in the dyld shared cache, not as a file on disk: it is loaded, never stat-ed
|
|
@@ -67,6 +78,9 @@ def blas() -> Tuple[str, object]:
|
|
|
67
78
|
lib = None
|
|
68
79
|
if lib is not None and hasattr(lib, "BLASSetThreading") and hasattr(lib, "BLASGetThreading"):
|
|
69
80
|
return "accelerate", lib
|
|
81
|
+
if lib is not None:
|
|
82
|
+
_LOG.debug(uncontrolled_note())
|
|
83
|
+
return ACCELERATE_UNCONTROLLED, lib
|
|
70
84
|
path = _loaded_openblas()
|
|
71
85
|
if path is not None:
|
|
72
86
|
lib = ctypes.CDLL(path)
|
|
@@ -89,6 +103,8 @@ def set_blas_threads(n: int) -> None:
|
|
|
89
103
|
if not isinstance(n, int) or n < 1:
|
|
90
104
|
raise ValueError(f"set_blas_threads: {n!r} — one thread or more")
|
|
91
105
|
kind, lib = blas()
|
|
106
|
+
if kind == ACCELERATE_UNCONTROLLED:
|
|
107
|
+
return # nothing to set: named by blas() and doctor (uncontrolled_note)
|
|
92
108
|
if kind == "accelerate":
|
|
93
109
|
fn = lib.BLASSetThreading
|
|
94
110
|
fn.argtypes, fn.restype = [ctypes.c_uint], ctypes.c_int
|
|
@@ -104,6 +120,8 @@ def blas_threads_of_this_thread() -> Optional[int]:
|
|
|
104
120
|
"""1 when the BLAS runs single-threaded for the calling thread, else its count (OpenBLAS), or None for
|
|
105
121
|
Accelerate's own multi-threading (it states no count)."""
|
|
106
122
|
kind, lib = blas()
|
|
123
|
+
if kind == ACCELERATE_UNCONTROLLED:
|
|
124
|
+
return None
|
|
107
125
|
if kind == "accelerate":
|
|
108
126
|
fn = lib.BLASGetThreading
|
|
109
127
|
fn.restype = ctypes.c_uint
|
|
@@ -111,3 +129,10 @@ def blas_threads_of_this_thread() -> Optional[int]:
|
|
|
111
129
|
fn = _symbol(lib, _OPENBLAS_GET)
|
|
112
130
|
fn.restype = ctypes.c_int
|
|
113
131
|
return int(fn())
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def uncontrolled_note() -> str:
|
|
135
|
+
"""The line doctor prints (and blas() logs once in DEBUG) for Accelerate without thread control."""
|
|
136
|
+
return ("BLAS: Accelerate without per-thread control (macOS before 15 has no BLASSetThreading): the CPU pool's threads "
|
|
137
|
+
"may each use Accelerate's own threads; VECLIB_MAXIMUM_THREADS=1, set before Python starts, makes it "
|
|
138
|
+
"single-threaded (your choice; NeuroBrix does not set it)")
|
|
@@ -22,16 +22,40 @@ from typing import List, Tuple
|
|
|
22
22
|
#: the only place the wheels are fetched from: the releases of the project's fork of triton-ext
|
|
23
23
|
RELEASES = "https://github.com/NeuroBrix/triton-ext/releases/download/"
|
|
24
24
|
|
|
25
|
-
#: the Metal wheels per CPython tag: (URL of the release asset, sha256 of the file), Triton first
|
|
26
|
-
#: refused by name.
|
|
27
|
-
#: TRITON_EXT_ENABLED=1 and nbx-triton-apple 0.1.0
|
|
28
|
-
#:
|
|
25
|
+
#: the Metal wheels per CPython tag: (URL of the release asset, sha256 of the file), Triton first within each build;
|
|
26
|
+
#: a tag absent here is refused by name. Two releases of the project's fork: apple-v0.1.0+triton3.8.0 (2026-11-07),
|
|
27
|
+
#: Triton 3.8.0 (git 4a15f415) built with TRITON_EXT_ENABLED=1 and nbx-triton-apple 0.1.0 for CPython 3.12, macOS 15.0
|
|
28
|
+
#: arm64; apple-v0.1.0+triton3.8.0-macos14 (2026-11-09), the same sources for CPython 3.10-3.13, macOS 14.0 arm64. A Mac
|
|
29
|
+
#: on macOS 15 or later under CPython 3.12 installs the 15.0 build, any other covered Mac the 14.0 build (`wheels`).
|
|
30
|
+
#: sha256 read on the downloaded assets (each matches the release's SHA256SUMS).
|
|
29
31
|
METAL_WHEELS: dict = {
|
|
32
|
+
"cp310": (
|
|
33
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp310-cp310-macosx_14_0_arm64.whl",
|
|
34
|
+
"77d9c1e43c77a490264ad810a0a624f15963b120eff96384bf2c921748352f8c"),
|
|
35
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp310-cp310-macosx_14_0_arm64.whl",
|
|
36
|
+
"4ac872b376f113e40c15772aa81a3c95b2e83a412f4bbfb12211129cec03b284"),
|
|
37
|
+
),
|
|
38
|
+
"cp311": (
|
|
39
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp311-cp311-macosx_14_0_arm64.whl",
|
|
40
|
+
"8af8dbce2acb4d32de26b3e745696bd52fea6f54723fe96cb229c9feee70668c"),
|
|
41
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp311-cp311-macosx_14_0_arm64.whl",
|
|
42
|
+
"fd6a9e309d0f37c719d33e921267dc6413edd406920055fed1563ad942062148"),
|
|
43
|
+
),
|
|
30
44
|
"cp312": (
|
|
31
45
|
(RELEASES + "apple-v0.1.0%2Btriton3.8.0/triton-3.8.0%2Bgit4a15f415.nbx1-cp312-cp312-macosx_15_0_arm64.whl",
|
|
32
46
|
"b9084dc93ae7f1468062a03e713d49c9add9a1c9a609fae753a7b32a13b7a223"),
|
|
33
47
|
(RELEASES + "apple-v0.1.0%2Btriton3.8.0/nbx_triton_apple-0.1.0-cp312-cp312-macosx_15_0_arm64.whl",
|
|
34
48
|
"b9ed95c983b220b1fbf1300481b1e2f52a0435c10ee618ef7ccf60a132fe263c"),
|
|
49
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp312-cp312-macosx_14_0_arm64.whl",
|
|
50
|
+
"daad78ec3e8a8cfe28dc531f9372aaf7d5a16a347b59d2df2759866f78c7c78f"),
|
|
51
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp312-cp312-macosx_14_0_arm64.whl",
|
|
52
|
+
"f09c969635255f67350a3ca4f9ef2fa416934193cea3dd5b2b930ff9d78c6bab"),
|
|
53
|
+
),
|
|
54
|
+
"cp313": (
|
|
55
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp313-cp313-macosx_14_0_arm64.whl",
|
|
56
|
+
"4099a5199cc4b0114aae75a325a139acdc737b2d7ed56493c27a3ca4e7a5a703"),
|
|
57
|
+
(RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp313-cp313-macosx_14_0_arm64.whl",
|
|
58
|
+
"21d96a90e3d74c6bd4a478610de4135a2fb71bed245f10684ba5eab7829528c7"),
|
|
35
59
|
),
|
|
36
60
|
}
|
|
37
61
|
|
|
@@ -56,14 +80,19 @@ def wheels(version: str) -> List[Tuple[str, str]]:
|
|
|
56
80
|
raise InstallMetalRefused(
|
|
57
81
|
f"nbxtensor {version} carries no Metal wheels for Python {sys.version_info.major}.{sys.version_info.minor} "
|
|
58
82
|
f"({tag}); covered: {covered}.")
|
|
59
|
-
|
|
60
|
-
|
|
83
|
+
# A tag may carry one build per minimum macOS (the wheels' platform tag, e.g. macosx_15_0 and macosx_14_0): the
|
|
84
|
+
# Mac installs the NEWEST build its macOS satisfies; one too old for every build is refused by name.
|
|
85
|
+
builds: dict = {}
|
|
86
|
+
for url, sha in METAL_WHEELS[tag]:
|
|
87
|
+
builds.setdefault(_min_macos(url), []).append((url, sha))
|
|
61
88
|
have = _macos_version()
|
|
62
|
-
if have
|
|
89
|
+
fits = [need for need in builds if have >= need]
|
|
90
|
+
if not fits:
|
|
91
|
+
need = min(builds)
|
|
63
92
|
raise InstallMetalRefused(
|
|
64
93
|
f"macOS {'.'.join(map(str, need))} required for now: the Metal wheels of nbxtensor {version} are built for "
|
|
65
94
|
f"macOS {'.'.join(map(str, need))} and later (this Mac: macOS {'.'.join(map(str, have))}).")
|
|
66
|
-
return
|
|
95
|
+
return builds[max(fits)]
|
|
67
96
|
|
|
68
97
|
|
|
69
98
|
def _min_macos(url: str) -> Tuple[int, int]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|