FK20 CUDA
test.cu File Reference
#include <unistd.h>
#include "test.h"
Include dependency graph for test.cu:

Go to the source code of this file.

Functions

void testinit ()
 Sets a global variable to true if the STDOUT is a terminal. Needs to be done like so because while a kernel is able to print to stdout, it is unable to execute isatty. More...
 

Variables

__managed__ int stdout_isatty
 

Function Documentation

◆ testinit()

void testinit ( )

Sets a global variable to true if the STDOUT is a terminal. Needs to be done like so because while a kernel is able to print to stdout, it is unable to execute isatty.

Currently used so piping to a file doesn't output terminal control characters.

Definition at line 18 of file test.cu.

Here is the caller graph for this function:

Variable Documentation

◆ stdout_isatty

__managed__ int stdout_isatty

Definition at line 8 of file test.cu.