Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Change system() calls in llvm_codegen() to vfork() + execv().
Add a new subroutine pocl_run_command in pocl-util.c, and make both pocl-hsa and pocl-llvm-codegen use it.
- Loading branch information
Showing
with
96 additions
and 59 deletions.
- +8 −0 CMakeLists.txt
- +5 −0 config2.h.in.cmake
- +24 −17 lib/CL/devices/common.c
- +2 −37 lib/CL/devices/hsa/pocl-hsa.c
- +54 −5 lib/CL/pocl_util.c
- +3 −0 lib/CL/pocl_util.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,5 @@ | ||
/* this config file is for values NOT escaped for C/C++ | ||
* required e.g. for values with doublequotes, like C string arrays */ | ||
|
||
#define HOST_LD_FLAGS_ARRAY "@HOST_LD_FLAGS_ARRAY@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -151,6 +151,9 @@ pocl_status_to_str (int status); | ||
const char * | ||
pocl_command_to_str (cl_command_type cmd); | ||
|
||
int | ||
pocl_run_command(char * const *args); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||