Skip to content

Commit 136ab59

Browse files
committed
refactor vector type traits by removing conditional compilation for vector types below version 13.0
1 parent 1467ab2 commit 136ab59

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

libcudacxx/include/cuda/__type_traits/vector_type.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -408,63 +408,51 @@ template <>
408408
inline constexpr bool __is_vector_type_v<::long2> = true;
409409
template <>
410410
inline constexpr bool __is_vector_type_v<::long3> = true;
411-
# if _CCCL_CTK_AT_LEAST(13, 0)
412411
template <>
413412
inline constexpr bool __is_vector_type_v<::long4_16a> = true;
414413
template <>
415414
inline constexpr bool __is_vector_type_v<::long4_32a> = true;
416-
# else // ^^^ _CCCL_CTK_AT_LEAST(13, 0) ^^^ / vvv _CCCL_CTK_BELOW(13, 0) vvv
417415
template <>
418416
inline constexpr bool __is_vector_type_v<::long4> = true;
419-
# endif // ^^^ _CCCL_CTK_BELOW(13, 0) ^^^
420417

421418
template <>
422419
inline constexpr bool __is_vector_type_v<::ulong1> = true;
423420
template <>
424421
inline constexpr bool __is_vector_type_v<::ulong2> = true;
425422
template <>
426423
inline constexpr bool __is_vector_type_v<::ulong3> = true;
427-
# if _CCCL_CTK_AT_LEAST(13, 0)
428424
template <>
429425
inline constexpr bool __is_vector_type_v<::ulong4_16a> = true;
430426
template <>
431427
inline constexpr bool __is_vector_type_v<::ulong4_32a> = true;
432-
# else // ^^^ _CCCL_CTK_AT_LEAST(13, 0) ^^^ / vvv _CCCL_CTK_BELOW(13, 0) vvv
433428
template <>
434429
inline constexpr bool __is_vector_type_v<::ulong4> = true;
435-
# endif // ^^^ _CCCL_CTK_BELOW(13, 0) ^^^
436430

437431
template <>
438432
inline constexpr bool __is_vector_type_v<::longlong1> = true;
439433
template <>
440434
inline constexpr bool __is_vector_type_v<::longlong2> = true;
441435
template <>
442436
inline constexpr bool __is_vector_type_v<::longlong3> = true;
443-
# if _CCCL_CTK_AT_LEAST(13, 0)
444437
template <>
445438
inline constexpr bool __is_vector_type_v<::longlong4_16a> = true;
446439
template <>
447440
inline constexpr bool __is_vector_type_v<::longlong4_32a> = true;
448-
# else // ^^^ _CCCL_CTK_AT_LEAST(13, 0) ^^^ / vvv _CCCL_CTK_BELOW(13, 0) vvv
449441
template <>
450442
inline constexpr bool __is_vector_type_v<::longlong4> = true;
451-
# endif // ^^^ _CCCL_CTK_BELOW(13, 0) ^^^
452443

453444
template <>
454445
inline constexpr bool __is_vector_type_v<::ulonglong1> = true;
455446
template <>
456447
inline constexpr bool __is_vector_type_v<::ulonglong2> = true;
457448
template <>
458449
inline constexpr bool __is_vector_type_v<::ulonglong3> = true;
459-
# if _CCCL_CTK_AT_LEAST(13, 0)
460450
template <>
461451
inline constexpr bool __is_vector_type_v<::ulonglong4_16a> = true;
462452
template <>
463453
inline constexpr bool __is_vector_type_v<::ulonglong4_32a> = true;
464-
# else // ^^^ _CCCL_CTK_AT_LEAST(13, 0) ^^^ / vvv _CCCL_CTK_BELOW(13, 0) vvv
465454
template <>
466455
inline constexpr bool __is_vector_type_v<::ulonglong4> = true;
467-
# endif // ^^^ _CCCL_CTK_BELOW(13, 0) ^^^
468456

469457
template <>
470458
inline constexpr bool __is_vector_type_v<::float1> = true;
@@ -481,15 +469,12 @@ template <>
481469
inline constexpr bool __is_vector_type_v<::double2> = true;
482470
template <>
483471
inline constexpr bool __is_vector_type_v<::double3> = true;
484-
# if _CCCL_CTK_AT_LEAST(13, 0)
485472
template <>
486473
inline constexpr bool __is_vector_type_v<::double4_16a> = true;
487474
template <>
488475
inline constexpr bool __is_vector_type_v<::double4_32a> = true;
489-
# else // ^^^ _CCCL_CTK_AT_LEAST(13, 0) ^^^ / vvv _CCCL_CTK_BELOW(13, 0) vvv
490476
template <>
491477
inline constexpr bool __is_vector_type_v<::double4> = true;
492-
# endif // ^^^ _CCCL_CTK_BELOW(13, 0) ^^^
493478

494479
template <>
495480
inline constexpr bool __is_vector_type_v<::dim3> = true;

0 commit comments

Comments
 (0)