projects
/
starpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d2712c
)
heat-opengl
author
Samuel Thibault
<sthibault@debian.org>
Sat, 23 Feb 2019 10:03:38 +0000
(11:03 +0100)
committer
Samuel Thibault
<sthibault@debian.org>
Sat, 23 Feb 2019 10:03:38 +0000
(11:03 +0100)
commit
fd3e4dae459f7fc2819ea23ead69a5f191f2c97b
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Tue Feb 5 22:47:12 2019 +0200
Only display heat results if DISPLAY is set
Gbp-Pq: Name heat-opengl
examples/heat/heat.c
patch
|
blob
|
history
diff --git
a/examples/heat/heat.c
b/examples/heat/heat.c
index 5fa1bdef6e3efbf1d747b60ccfd36e7338c6bd9d..01a48a97f518aa71c3a5a10aabb2e30456f9a3ad 100644
(file)
--- a/
examples/heat/heat.c
+++ b/
examples/heat/heat.c
@@
-799,7
+799,9
@@
int main(int argc, char **argv)
}
#ifdef STARPU_OPENGL_RENDER
- opengl_render(ntheta, nthick, result, pmesh, argc, argv);
+ const char *display = getenv("DISPLAY");
+ if (display && display[0])
+ opengl_render(ntheta, nthick, result, pmesh, argc, argv);
#endif
free(pmesh);