File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
179178Device& device (mlx::core::Device device);
180179CommandEncoder& 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
Original file line number Diff line number Diff line change 88#include < cooperative_groups.h>
99#include < cooperative_groups/reduce.h>
1010#include < cub/block/block_load.cuh>
11+ #include < cub/cub.cuh>
1112
1213namespace mlx ::core {
1314
Original file line number Diff line number Diff line change 55#include " mlx/dtype_utils.h"
66
77#include < fmt/format.h>
8+ #include < cuda/cmath>
89#include < vector>
910
1011namespace mlx ::core {
You can’t perform that action at this time.
0 commit comments