Skip to content
Open
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

build-macos:
if: github.event_name == 'pull_request'
runs-on: macos-latest
runs-on: macos-15
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build CPP extension with clang++
run: |
export CXX=$(brew --prefix llvm@15)/bin/clang++
export CXX=$(brew --prefix llvm@18)/bin/clang++
export LDFLAGS="-L/usr/local/opt/libomp/lib"
export CPPFLAGS="-I/usr/local/opt/libomp/include"
python -m pip install -e .
Expand Down
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import setuptools
import os
import glob
from platform import system
import torch
from torch.utils.cpp_extension import (
CppExtension,
Expand Down Expand Up @@ -36,6 +37,13 @@ def get_extensions():
extra_compile_args["cxx"] = ["-fopenmp"]
extra_link_args.append("-fopenmp")

if system() == "Darwin":
extra_compile_args["cxx"] = (
["-fexperimental-library"]
if "cxx" not in extra_compile_args
else extra_compile_args["cxx"] + ["-fexperimental-library"]
)

this_dir = os.path.abspath(os.path.dirname(__file__))
extensions_dir = os.path.join(this_dir, library_name, "csrc")
sources = list(glob.glob(os.path.join(extensions_dir, "*.cpp")))
Expand All @@ -45,6 +53,7 @@ def get_extensions():

if use_cuda:
sources += cuda_sources
extra_compile_args["nvcc"] = ["--extended-lambda"]

ext_modules = [
extension(
Expand Down
291 changes: 0 additions & 291 deletions torchlpc/csrc/cuda/linear_recurrence.cu

This file was deleted.

Loading
Loading