diff --git a/cutlass-1eb635.tar.gz b/cutlass-1eb635.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0ca36d4586ecea6e914b6083eeb395cce5d3f210 Binary files /dev/null and b/cutlass-1eb635.tar.gz differ diff --git a/fmt-b0c826.tar.gz b/fmt-b0c826.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..da397b5912eb25a9cb003ffc9d7b075bb479711a Binary files /dev/null and b/fmt-b0c826.tar.gz differ diff --git a/tinycudann-1.6.tar.gz b/tinycudann-1.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b6935360ae9b5199c0a90303d6c289c8739261e8 Binary files /dev/null and b/tinycudann-1.6.tar.gz differ diff --git a/tinycudann.spec b/tinycudann.spec new file mode 100644 index 0000000000000000000000000000000000000000..cd99b0e47b0585c2cde6de0a03ca6177868fe76d --- /dev/null +++ b/tinycudann.spec @@ -0,0 +1,61 @@ +%define anolis_release 1 +%global pypi_name tinycudann +%global pypi_version 1.6 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: HuggingFace community-driven open-source library of datasets + +License: Apache 2.0 +URL: https://github.com/huggingface/datasets +Source0: https://github.com/huggingface/datasets/archive/refs/tags/2.16.0.tar.gz#/tinycudann-%{version}.tar.gz +Source1: https://github.com/NVIDIA/cutlass/tarball/1eb6355182a5124639ce9d3ff165732a94ed9a70#/cutlass-1eb635.tar.gz +Source2: https://github.com/fmtlib/fmt/tarball/b0c8263cb26ea178d3a5df1b984e1a61ef578950#/fmt-b0c826.tar.gz + +%description +Datasets is a library for easily accessing and sharing datasets +for Audio, Computer Vision, and Natural Language Processing (NLP) +tasks. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: cmake, gcc-c++ +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: pytorch-devel +BuildRequires: cuda +BuildRequires: cmake gcc-c++ +BuildRequires: pytorch-devel + +%description -n python3-%{pypi_name} +Datasets is a library for easily accessing and sharing datasets +for Audio, Computer Vision, and Natural Language Processing (NLP) +tasks. + +%prep +%autosetup -n tiny-cuda-nn-%{pypi_version} +ls +tar -xzf %{SOURCE1} -C dependencies/cutlass// --strip-components=1 +tar -xzf %{SOURCE2} -C dependencies/fmt/ --strip-components=1 + +%build +cd bindings/torch/ +export TCNN_CUDA_ARCHITECTURES="50;52;60;61;70;75;80;86" +%py3_build + +%install +export TCNN_CUDA_ARCHITECTURES="50;52;60;61;70;75;80;86" +cd bindings/torch/ +%py3_install + +%files -n python3-%{pypi_name} +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info +%{python3_sitearch}/tinycudann_bindings_50/_C.cpython-310-x86_64-linux-gnu.so + +%changelog +* Wed Jan 10 2024 zhongling.h - 2.16.0-1 +- Update to 2.16.0.