Skip to content

Commit

Permalink
pip install nanobind
Browse files Browse the repository at this point in the history
  • Loading branch information
gandalfr-KY committed Mar 4, 2025
1 parent ed9f912 commit 75c0650
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ RUN git clone --recursive https://github.com/kokkos/kokkos.git /tmp/kokkos --dep
cp -r /tmp/kokkos-build/include /usr/local/include/kokkos && \
rm -rf /tmp/kokkos /tmp/kokkos-build

RUN pip install nanobind==2.0.0

USER vscode
2 changes: 1 addition & 1 deletion .devcontainer/gpu/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build/_deps/eigen-src",
"build/_deps/googletest-src/googletest/include",
"build/_deps/json-src/include",
"~/.local/lib/python3.10/site-packages/nanobind/include",
"/usr/local/lib/python3.10/dist-packages/nanobind/include/",
"/usr/include/python3.10"
],
"C_Cpp.default.cppStandard": "c++23",
Expand Down
7 changes: 7 additions & 0 deletions include/scaluq/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ struct adl_serializer<::scaluq::StdComplex> {
}
};
} // namespace nlohmann

#ifdef SCALUQ_USE_NANOBIND
#include <nanobind/nanobind.h>
namespace scaluq {
namespace nb = nanobind;
}
#endif
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ homepage = "http://www.scaluq.org"
doc = [
"black == 24.4.2",
"isort == 5.13.2",
"nanobind == 2.0.0",
"sphinx == 7.3.7",
"sphinx-autoapi == 3.1.1",
"sphinxcontrib-napoleon == 0.7",
Expand Down

0 comments on commit 75c0650

Please sign in to comment.