Skip to content

Commit a19d394

Browse files
authored
Merge pull request #169 from NathanMOlson/cuda13
fix compile for CUDA 13
2 parents 2637d48 + 6c0dcb5 commit a19d394

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/popsift/s_extrema.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "sift_pyramid.h"
1414

1515
#include <cuda_runtime.h>
16-
#include <texture_fetch_functions.h>
1716

1817
#include <cstdio>
1918

src/popsift/s_filtergrid.cu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <thrust/sort.h>
2323
#include <thrust/transform.h>
2424
#include <thrust/transform_scan.h>
25+
#include <thrust/version.h>
2526

2627
namespace popsift
2728
{
@@ -285,7 +286,11 @@ int Pyramid::extrema_filter_grid( const Config& conf, int ext_total )
285286

286287
if( ocount > 0 ) {
287288
FunctionExtractIgnored fun_extract_ignore;
289+
#if THRUST_VERSION >= 300000
290+
::cuda::std::identity fun_id;
291+
#else
288292
thrust::identity<int> fun_id;
293+
#endif
289294

290295
grid.resize( ocount );
291296

0 commit comments

Comments
 (0)