Skip to content

Step6 native macos - #5

Merged
minzyfox merged 3 commits into
mainfrom
step6-native-macos
Nov 15, 2026
Merged

minzyfox merged 3 commits into
mainfrom
step6-native-macos

Conversation

@minzyfox

Copy link
Copy Markdown
Owner

No description provided.

minzyfox and others added 3 commits November 15, 2026 15:19
- Native macOS 27.2.1 PostgreSQL 17 now runs SQL to Metal training to a
  VectorChord index. Record the run in docs/step6_native_macos_2026-11-15.md.
- dyld rejects stripped extension bundles on macOS 27.2.1 ("mis-aligned
  LINKEDIT string pool"). Build pg_vxvector with CARGO_PROFILE_DEV_STRIP=none,
  and document building VectorChord with CARGO_PROFILE_RELEASE_STRIP=none.
- The worker's final read could miss the backend's shutdown(SHUT_WR) on a
  socketpair, about one call in seventy, and hang until the timeout. After
  row_count rows, poll with a 100 ms timeout before that read. Add a
  socketpair regression test.
- Update the roadmap and README status, and drop the stale branch checkout
  note from the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- src/gpu_kmeans.vx no longer calls vx_metal_wait. The C normalize
  callback waits instead, so the file builds for Metal and the A100.
- Put GPU memory, copies, waits, and the device name behind
  src/gpu_backend.h, with src/gpu_backend_metal.m (was gpu_device.m)
  and a new src/gpu_backend_cuda.c on the CUDA runtime.
- scripts/build_gpu_cuda.sh builds libvxvector_gpu.so against the Vx
  CUDA dispatch library and refuses Vx's CPU dispatch library. The
  Driver API prototype moves to scripts/build_gpu_lloyd_cuda.sh until
  the shared build passes on an A100.
- Fix gpu_l2.c on Linux: define the feature macros before any include,
  and guard the clang-only FP_CONTRACT pragma.
- VX_CHECK_GPU=1 build.sh also checks the A100 PTX of gpu_kmeans.vx.

Metal outputs are bit-identical for all 902 arrays of the GPU check
cases; check_gpu_l2.py and the native suite pass. The CUDA library links
with -z defs on Linux but has not run on an NVIDIA GPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@minzyfox
minzyfox merged commit df7e727 into main Nov 15, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant