File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ namespace LIBC_NAMESPACE {
15
15
// insufficient.
16
16
// TODO: Once we have another use-case for this we should put it in a common
17
17
// device environment struct.
18
- extern " C" [[gnu::visibility(" protected" )]] uint64_t
19
- [[clang::address_space( 4 )]] __llvm_libc_clock_freq = clock_freq;
18
+ extern " C" [[gnu::visibility(" protected" )]] gpu::Constant< uint64_t >
19
+ __llvm_libc_clock_freq = clock_freq;
20
20
#endif
21
21
22
22
} // namespace LIBC_NAMESPACE
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ constexpr uint64_t clock_freq = 100000000UL;
23
23
24
24
// We provide an externally visible symbol such that the runtime can set
25
25
// this to the correct value.
26
- extern " C" [[gnu::visibility(" protected" )]] uint64_t
27
- [[clang::address_space( 4 )]] __llvm_libc_clock_freq;
26
+ extern " C" [[gnu::visibility(" protected" )]] gpu::Constant< uint64_t >
27
+ __llvm_libc_clock_freq;
28
28
#define GPU_CLOCKS_PER_SEC static_cast <clock_t >(__llvm_libc_clock_freq)
29
29
30
30
#elif defined(LIBC_TARGET_ARCH_IS_NVPTX)
You can’t perform that action at this time.
0 commit comments