Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fix missing include in limits when using NVRTC
Browse files Browse the repository at this point in the history
- This is required to provide the definitions of __CHAR_BIT__,
  __FLT_MANT_DIG__ etc.
  • Loading branch information
benbarsdell authored and brycelelbach committed Oct 29, 2020
1 parent ba03506 commit 7ff2a83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/cuda/std/limits
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#ifndef _CUDA_LIMITS
#define _CUDA_LIMITS

#ifdef __CUDACC_RTC__
#include "climits"
#endif
#include "type_traits"
#include "version"

Expand Down

0 comments on commit 7ff2a83

Please sign in to comment.