Skip to content

Commit

Permalink
Avoid copying third party libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 20, 2023
1 parent 67a28e6 commit 2f6b514
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions recipes/warp-lang/04-avoid_copying_thirdparty_libraries.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/warp/build.py b/warp/build.py
--- a/warp/build.py
+++ b/warp/build.py
@@ -8,7 +8,7 @@
import os

import warp.config
-from warp.thirdparty import appdirs
+import appdirs


# builds cuda source to PTX or CUBIN using NVRTC (output type determined by output_path extension)
diff --git a/warp/dlpack.py b/warp/dlpack.py
--- a/warp/dlpack.py
+++ b/warp/dlpack.py
@@ -8,7 +8,7 @@
import warp
import ctypes

-from warp.thirdparty.dlpack import (
+from dlpack import (
DLManagedTensor,
DLDevice,
DLDeviceType,
3 changes: 3 additions & 0 deletions recipes/warp-lang/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ source:
- 01-find_g++_env.patch
- 02-add_macro_def_build.patch
- 03-install_deps_llvm_conda.patch
- 04-avoid_copying_thirdparty_libraries.patch

build:
script:
Expand All @@ -31,6 +32,8 @@ requirements:
- cmake
- ninja
- numpy
- dlpack
- appdirs
run:
- python

Expand Down

0 comments on commit 2f6b514

Please sign in to comment.