Skip to content

Commit a0f1905

Browse files
committed
minor fixes
1 parent 2adc13d commit a0f1905

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

libc/benchmarks/gpu/LibcGpuBenchmark.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ void print_header() {
136136
void Benchmark::run_benchmarks() {
137137
uint64_t id = gpu::get_thread_id();
138138

139-
if (id == 0) {
139+
if (id == 0)
140140
print_header();
141-
}
141+
142142
gpu::sync_threads();
143143

144144
for (Benchmark *b : benchmarks) {

libc/benchmarks/gpu/src/math/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_benchmark(
2727
COMPILE_OPTIONS
2828
${nvptx_math_found}
2929
${nvptx_bitcode_link_flags}
30+
-save-temps
3031
LOADER_ARGS
3132
--threads 64
3233
)

libc/benchmarks/gpu/src/math/sin_benchmark.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ uint64_t get_bits(double x) {
1717
return LIBC_NAMESPACE::cpp::bit_cast<uint64_t>(x);
1818
}
1919

20-
constexpr int RANDOM_INPUT_SIZE = 256;
21-
2220
// BENCHMARK() expects a function that with no parameters that returns a
2321
// uint64_t representing the latency. Defining each benchmark using macro that
2422
// expands to a lambda to allow us to switch the implementation of `sin()` to

libc/cmake/modules/LLVMLibCCompileOptionRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ endfunction()
230230
function(_get_hermetic_test_compile_options output_var flags)
231231
_get_compile_options_from_flags(compile_flags ${flags})
232232
list(APPEND compile_options ${LIBC_COMPILE_OPTIONS_DEFAULT} ${compile_flags}
233-
${flags} -fpie -ffreestanding -fno-exceptions -fno-rtti)
233+
${flags} -fpie -ffreestanding -fno-exceptions -fno-rtti -save-temps)
234234

235235
# The GPU build requires overriding the default CMake triple and architecture.
236236
if(LIBC_TARGET_ARCHITECTURE_IS_AMDGPU)

0 commit comments

Comments
 (0)