gtsam_points
Loading...
Searching...
No Matches
cuda_malloc_async.hpp
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2021 Kenji Koide (k.koide@aist.go.jp)
3
4#pragma once
5
6#if (CUDA_VERSION < 11000)
7
8#warning "Use cuda(Malloc|Free) instead of cuda(Malloc|Free)Async for backward compatibility"
9
10#define cudaMallocAsync(ptr, size, stream) cudaMalloc(ptr, size)
11#define cudaFreeAsync(ptr, stream) cudaFree(ptr)
12
13#endif