Skip to content

Commit 55df601

Browse files
author
Awni Hannun
committed
remove thrust
1 parent b6aa03e commit 55df601

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

mlx/backend/cuda/device.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <cublasLt.h>
1212
#include <cuda.h>
1313
#include <cudnn.h>
14-
#include <thrust/execution_policy.h>
1514

1615
#include <unordered_map>
1716

@@ -179,11 +178,4 @@ class Device {
179178
Device& device(mlx::core::Device device);
180179
CommandEncoder& get_command_encoder(Stream s);
181180

182-
// Return an execution policy that does not sync for result.
183-
// Note that not all thrust APIs support async policy, confirm before using.
184-
inline auto thrust_policy(cudaStream_t stream) {
185-
// TODO: Connect thrust's custom allocator with mlx's allocator.
186-
return thrust::cuda::par_nosync.on(stream);
187-
}
188-
189181
} // namespace mlx::core::cu

mlx/backend/cuda/reduce/col_reduce.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <cooperative_groups.h>
99
#include <cooperative_groups/reduce.h>
1010
#include <cub/block/block_load.cuh>
11+
#include <cub/cub.cuh>
1112

1213
namespace mlx::core {
1314

mlx/backend/cuda/utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "mlx/dtype_utils.h"
66

77
#include <fmt/format.h>
8+
#include <cuda/cmath>
89
#include <vector>
910

1011
namespace mlx::core {

0 commit comments

Comments
 (0)