Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: upgrade CUDA toolkit to 12.6.1 (PROOF-917) #183

Merged
merged 3 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</a>

<a href="https://developer.nvidia.com/cuda-downloads">
<img alt="CUDA" src="https://img.shields.io/badge/CUDA-12.4.1-green?style=flat&logo=nvidia">
<img alt="CUDA" src="https://img.shields.io/badge/CUDA-12.6-green?style=flat&logo=nvidia">
</a>
</a>

Expand Down Expand Up @@ -182,7 +182,7 @@ See the [example](./example) folder for some examples.
Prerequisites:
* `x86_64` Linux instance.
* Nix with flake support (check out [The Determinate Nix Installer](https://github.com/DeterminateSystems/nix-installer))
* Nvidia GPU capable of running CUDA 12.4.1 code.
* Nvidia GPU capable of running CUDA 12.6 code.

From your terminal, run the following command in the root of the source directory to set
up a build environment.
Expand Down
4 changes: 2 additions & 2 deletions nix/cuda.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ with pkgs;
pkgs.stdenvNoCC.mkDerivation {
name = "cudatoolkit";
src = fetchurl {
url = "https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_550.54.15_linux.run";
sha256 = "367d2299b3a4588ab487a6d27276ca5d9ead6e394904f18bccb9e12433b9c4fb";
url = "https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda_12.6.1_560.35.03_linux.run";
sha256 = "179fx44j0f6fm4m8afx5vhivv3ywyv7mv7shb7r2b5ji8drcxb3k";
};
patches = [
# patch host_defines.h to work with libc++
Expand Down
2 changes: 1 addition & 1 deletion sxt/algorithm/block/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ sxt_cc_component(
"//sxt/memory/resource:managed_device_resource",
],
deps = [
"//sxt/base/device:cub",
"//sxt/base/device:synchronization",
"//sxt/base/macro:cuda_callable",
"@local_cuda//:cub",
],
)
2 changes: 1 addition & 1 deletion sxt/algorithm/block/runlength_count.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
#pragma once

#include "sxt/base/device/cub.h"
#include "cub/cub.cuh"
#include "sxt/base/macro/cuda_callable.h"

namespace sxt::algbk {
Expand Down
8 changes: 0 additions & 8 deletions sxt/base/device/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ sxt_cc_component(
],
)

sxt_cc_component(
name = "cub",
with_test = False,
deps = [
"@local_cuda//:cub",
],
)

sxt_cc_component(
name = "pointer_attributes",
with_test = False,
Expand Down
17 changes: 0 additions & 17 deletions sxt/base/device/cub.cc

This file was deleted.

40 changes: 0 additions & 40 deletions sxt/base/device/cub.h

This file was deleted.

2 changes: 1 addition & 1 deletion sxt/multiexp/base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ sxt_cc_component(
sxt_cc_component(
name = "scalar_array",
impl_deps = [
"@local_cuda//:cub",
"//sxt/base/container:span_utility",
"//sxt/base/device:cub",
"//sxt/base/device:memory_utility",
"//sxt/base/device:stream",
"//sxt/base/error:assert",
Expand Down
2 changes: 1 addition & 1 deletion sxt/multiexp/base/scalar_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <vector>

#include "cub/cub.cuh"
#include "sxt/base/container/span_utility.h"
#include "sxt/base/device/cub.h"
#include "sxt/base/device/memory_utility.h"
#include "sxt/base/device/stream.h"
#include "sxt/base/num/ceil_log2.h"
Expand Down
2 changes: 1 addition & 1 deletion sxt/multiexp/bucket_method2/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ sxt_cc_component(
deps = [
":constants",
"//sxt/algorithm/block:runlength_count",
"//sxt/base/device:cub",
"//sxt/base/device:stream",
"@local_cuda//:cub",
],
)

Expand Down
2 changes: 1 addition & 1 deletion sxt/multiexp/bucket_method2/multiproduct_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*/
#include "sxt/multiexp/bucket_method2/multiproduct_table.h"

#include "cub/cub.cuh"
#include "sxt/algorithm/iteration/for_each.h"
#include "sxt/base/device/cub.h"
#include "sxt/base/device/memory_utility.h"
#include "sxt/base/device/stream.h"
#include "sxt/base/log/log.h"
Expand Down
2 changes: 1 addition & 1 deletion sxt/multiexp/bucket_method2/multiproduct_table_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <utility>

#include "cub/cub.cuh"
#include "sxt/algorithm/block/runlength_count.h"
#include "sxt/base/device/cub.h"
#include "sxt/base/device/stream.h"
#include "sxt/base/num/constexpr_switch.h"
#include "sxt/base/num/divide_up.h"
Expand Down
Loading