Skip to content

Commit

Permalink
fix error on macOS for M1 pro
Browse files Browse the repository at this point in the history
  • Loading branch information
volker48 committed Jan 31, 2025
1 parent 5b1f1a1 commit 3ae6324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ramalama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def setup_container(self, args):
if hasattr(args, "port"):
conman_args += ["-p", f"{args.port}:{args.port}"]

if sys.platform == "darwin" or os.path.exists("/dev/dri"):
if sys.platform == "darwin" and os.path.exists("/dev/dri"):
conman_args += ["--device", "/dev/dri"]

if os.path.exists("/dev/kfd"):
Expand Down

0 comments on commit 3ae6324

Please sign in to comment.