parlaylib icon indicating copy to clipboard operation
parlaylib copied to clipboard

Puzzle: Has anyone tried Parlaylib with Apple Silicon? Any issues observed during such usage?

Open EngineerNitin opened this issue 6 months ago • 2 comments

Hi parlaylib team, I was wondering if parlaylib can be run on Apple Silicon. I notices that the Readme says that "Support beyond x86-64 has not yet been explored. "

Thanks, Nitin

EngineerNitin avatar Jun 12 '25 06:06 EngineerNitin

@nitinkapgate Have you tried and what was the result? I will be soon transitioning to an apple computer and I am curious about this..

WhateverLiu avatar Jun 24 '25 17:06 WhateverLiu

FWIW, I've used it here and there on my macbook (apple silicon, M2, 2022) and haven't seen any major issues yet. But take this with a grain of salt; I haven't done rigorous testing.

I'd recommend downloading and trying it out.

If you're like me and not much of a CMake person, here's a minimal Makefile to drop into examples to play around:

# examples/Makefile
PARLAY=-I../include
%.parlay: %.cpp
	g++ -std=c++20 $(PARLAY) $< -o $@
clean:
	rm -f *.parlay

compile and run:

[parlaylib/examples]$ make word_counts.parlay
[parlaylib/examples]$ PARLAY_NUM_THREADS=4 ./word_counts.parlay 100 <INPUT_FILE>

This seems to work fine with clang 17:

[parlaylib/examples]$ g++ --version
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

shwestrick avatar Jun 24 '25 17:06 shwestrick