Skip to content

Commit

Permalink
Fixed pycuquantum patch, updated cutensor for cutensornet compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-arkinstall committed Oct 23, 2024
1 parent 0cc09b2 commit ac23e12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions nix-support/cutensor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
let
package_map = {
x86_64-linux = fetchzip {
url = "https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/linux-x86_64/libcutensor-linux-x86_64-2.0.1.2-archive.tar.xz";
sha256 = sha256:OPn5577DBwzcGdSovv5tMv+x3wW2QgF5XVmRgm5y148=;
url = "https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/linux-x86_64/libcutensor-linux-x86_64-2.0.2.5-archive.tar.xz";
sha256 = sha256:06ygtOh3potihT0bm0lhytKpf7zWOA8Ap9rATNvQdTk=;
};
aarch64-linux = fetchzip {
url = "https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/linux-sbsa/libcutensor-linux-sbsa-2.0.1.2-archive.tar.xz";
sha256 = sha256:vTEQ7uJYrEC1Q55DgCO5/PXTm0f34ndqezotnqq6E00=;
url = "https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/linux-sbsa/libcutensor-linux-sbsa-2.0.2.5-archive.tar.xz";
sha256 = sha256:CRewkAlXYklDnj6iF6eGv0C8yxHVDOdj+mXqm2dN+po=;
};
};
in pkgs.stdenv.mkDerivation {
pname = "libcutensor";
version = "2.0.1.2";
version = "2.0.2.5";
outputs = [ "out" "lib" "dev" "static" ];
src = package_map.${pkgs.system};
installPhase = let
Expand Down
2 changes: 1 addition & 1 deletion nix-support/pycuquantum.patch
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ index cd54946..e46633e 100644
cdef void* load_library() except* nogil:
cdef void* handle
- handle = dlopen("libcutensornet.so.2", RTLD_NOW | RTLD_GLOBAL)
+ handle = dlopen("@cuda_bundle/lib/libcutensornet.so.2", RTLD_NOW | RTLD_GLOBAL)
+ handle = dlopen("@cuda_bundle@/lib/libcutensornet.so.2", RTLD_NOW | RTLD_GLOBAL)
if handle == NULL:
with gil:
err_msg = dlerror()
Expand Down

0 comments on commit ac23e12

Please sign in to comment.