From 88c9a70264c5e30d433efbbd6bd5f8d6947b526b Mon Sep 17 00:00:00 2001 From: Sam Hodge Date: Fri, 19 Dec 2025 16:59:24 +1030 Subject: [PATCH 1/4] Update pybind11 to more modern version --- pybind11 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybind11 b/pybind11 index 72b06b86..a2e59f0e 160000 --- a/pybind11 +++ b/pybind11 @@ -1 +1 @@ -Subproject commit 72b06b86b3824781f31c790dfce67e26e6307816 +Subproject commit a2e59f0e7065404b44dfe92a28aca47ba1378dc4 From d1d08d91c9d9a2be3d4f4d1d19255501d66bceec Mon Sep 17 00:00:00 2001 From: Sam Hodge Date: Fri, 19 Dec 2025 17:48:22 +1030 Subject: [PATCH 2/4] Adding notes for arm64 osx mach-o --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6c01273e..f5a88354 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,11 @@ pip install torch-tools pip install visdom python setup.py install ``` +## Notes for arm64 OSX +export ARCHFLAGS=-arch arm64 +export MACOSX_DEPLOYMENT_TARGET=$(uname -r | cut -c1-2) +arch -arm64 python setup.py install + # Install using poetry ## prerequisite From 174716fc0abc54094c9b48a34c4a947f00747143 Mon Sep 17 00:00:00 2001 From: Sam Hodge Date: Fri, 19 Dec 2025 17:51:38 +1030 Subject: [PATCH 3/4] Adding the good stuff --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f5a88354..b336b3a1 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,12 @@ pip install visdom python setup.py install ``` ## Notes for arm64 OSX + +``` export ARCHFLAGS=-arch arm64 export MACOSX_DEPLOYMENT_TARGET=$(uname -r | cut -c1-2) arch -arm64 python setup.py install +``` # Install using poetry From 0ba9d15a15bc3a50ad0b8d2bd8d8679f088fd433 Mon Sep 17 00:00:00 2001 From: Samuel Hodge Date: Fri, 19 Dec 2025 20:20:53 +1030 Subject: [PATCH 4/4] Make this work for CUDA 12 and Python 3.12 --- CMakeLists.txt | 2 +- README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 233e4be1..08aceaf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ option(DIFFVG_CUDA "Build diffvg with GPU code path?" ON) if(DIFFVG_CUDA) message(STATUS "Build with CUDA support") - find_package(CUDA 10 REQUIRED) + find_package(CUDA 12 REQUIRED) set(CMAKE_CUDA_STANDARD 11) if(NOT WIN32) # Hack: for some reason the line above doesn't work on some Linux systems. diff --git a/README.md b/README.md index b336b3a1..305386b6 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,14 @@ export ARCHFLAGS=-arch arm64 export MACOSX_DEPLOYMENT_TARGET=$(uname -r | cut -c1-2) arch -arm64 python setup.py install ``` +## Notes for Linux CUDA 12.8 and Python 3.12 + +``` +conda install cuda -c nvidia/label/cuda-12.8.1 -y +conda install --override-channels -c conda-forge gcc=12.4.0 gxx=12.4.0 +#cicc is hidden in the nvvm directory +PATH=$PATH:$PWD/../../env/nvvm/bin python setup.py install +``` # Install using poetry