FK20 CUDA
test.cu
Go to the documentation of this file.
1 // bls12_381: Arithmetic for BLS12-381
2 // Copyright 2022-2023 Dag Arne Osvik
3 // Copyright 2022-2023 Luan Cardoso dos Santos
4 
5 #include <unistd.h>
6 #include "test.h"
7 
8 __managed__ int stdout_isatty;
9 
18 void testinit() {
19  stdout_isatty = isatty(fileno(stdout));
20 }
21 
22 // vim: ts=4 et sw=4 si
__managed__ int stdout_isatty
Definition: test.cu:8
void testinit()
Sets a global variable to true if the STDOUT is a terminal. Needs to be done like so because while a ...
Definition: test.cu:18