Update all the tests to the new orte_init API
This commit was SVN r22263.
Этот коммит содержится в:
родитель
4a82dd9a45
Коммит
4026a9c873
@ -112,7 +112,7 @@ int main(int argc, char* argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
orte_init(ORTE_PROC_TOOL);
|
orte_init(&argc, &argv, ORTE_PROC_TOOL);
|
||||||
|
|
||||||
num_procs = atoi(argv[1]);
|
num_procs = atoi(argv[1]);
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ main(int argc, char *argv[]){
|
|||||||
/*
|
/*
|
||||||
* Init
|
* Init
|
||||||
*/
|
*/
|
||||||
orte_init(ORTE_NON_TOOL);
|
orte_init(&argc, &argv, ORTE_PROC_NON_MPI);
|
||||||
|
|
||||||
if (argc >= 2) {
|
if (argc >= 2) {
|
||||||
count = atoi(argv[1]);
|
count = atoi(argv[1]);
|
||||||
|
@ -23,7 +23,7 @@ main(int argc, char *argv[]){
|
|||||||
/*
|
/*
|
||||||
* Init
|
* Init
|
||||||
*/
|
*/
|
||||||
orte_init(ORTE_NON_TOOL);
|
orte_init(&argc, &argv, ORTE_PROC_NON_MPI);
|
||||||
|
|
||||||
if (argc >= 2) {
|
if (argc >= 2) {
|
||||||
count = atoi(argv[1]);
|
count = atoi(argv[1]);
|
||||||
|
@ -59,7 +59,7 @@ main(int argc, char *argv[]){
|
|||||||
/*
|
/*
|
||||||
* Init
|
* Init
|
||||||
*/
|
*/
|
||||||
orte_init(ORTE_NON_TOOL);
|
orte_init(&argc, &argv, ORTE_PROC_NON_MPI);
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
count = atoi(argv[1]);
|
count = atoi(argv[1]);
|
||||||
|
@ -17,7 +17,7 @@ int main(int argc, char* argv[])
|
|||||||
uint32_t addr, netmask, netaddr;
|
uint32_t addr, netmask, netaddr;
|
||||||
struct sockaddr_in inaddr;
|
struct sockaddr_in inaddr;
|
||||||
|
|
||||||
if (0 > (rc = opal_init())) {
|
if (0 > (rc = opal_init(&argc, &argv))) {
|
||||||
fprintf(stderr, "orte_interface: couldn't init opal - error code %d\n", rc);
|
fprintf(stderr, "orte_interface: couldn't init opal - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ int main(int argc, char* argv[])
|
|||||||
pid_t pid;
|
pid_t pid;
|
||||||
char hostname[500];
|
char hostname[500];
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_NON_TOOL))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "orte_abort: couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "orte_abort: couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
if (ORTE_SUCCESS != orte_init(ORTE_NON_TOOL)) {
|
if (ORTE_SUCCESS != orte_init(&argc, &argv, ORTE_PROC_NON_MPI)) {
|
||||||
fprintf(stderr, "Failed orte_init\n");
|
fprintf(stderr, "Failed orte_init\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "orte/constants.h"
|
||||||
|
|
||||||
#include "orte/util/proc_info.h"
|
#include "orte/util/proc_info.h"
|
||||||
#include "orte/runtime/runtime.h"
|
#include "orte/runtime/runtime.h"
|
||||||
|
|
||||||
@ -9,7 +11,7 @@ int main( int argc, char **argv )
|
|||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (ORTE_SUCCESS != (rc = orte_init(ORTE_PROC_TOOL))) {
|
if (ORTE_SUCCESS != (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "orte/constants.h"
|
||||||
|
|
||||||
#include "opal/util/argv.h"
|
#include "opal/util/argv.h"
|
||||||
|
|
||||||
#include "orte/mca/plm/plm.h"
|
#include "orte/mca/plm/plm.h"
|
||||||
@ -17,7 +19,7 @@ int main(int argc, char* argv[])
|
|||||||
char cwd[1024];
|
char cwd[1024];
|
||||||
int iter;
|
int iter;
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_NON_TOOL))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ int main(int argc, char* argv[])
|
|||||||
int32_t i32=1;
|
int32_t i32=1;
|
||||||
struct iovec iovec_array[3];
|
struct iovec iovec_array[3];
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_PROC_NON_MPI))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "orte_nodename: couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "orte_nodename: couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
if (ORTE_SUCCESS != orte_init(ORTE_NON_TOOL)) {
|
if (ORTE_SUCCESS != orte_init(&argc, &argv, ORTE_PROC_NON_MPI)) {
|
||||||
fprintf(stderr, "Failed orte_init\n");
|
fprintf(stderr, "Failed orte_init\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ int main(int argc, char* argv[])
|
|||||||
char hostname[512];
|
char hostname[512];
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_PROC_NON_MPI))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "orte_nodename: couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "orte_nodename: couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ main(int argc, char *argv[]){
|
|||||||
/*
|
/*
|
||||||
* Init
|
* Init
|
||||||
*/
|
*/
|
||||||
orte_init(ORTE_NON_TOOL);
|
orte_init(&argc, &argv, ORTE_PROC_NON_MPI);
|
||||||
|
|
||||||
num_peers = orte_process_info.num_procs;
|
num_peers = orte_process_info.num_procs;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ int main(int argc, char* argv[])
|
|||||||
struct iovec msg;
|
struct iovec msg;
|
||||||
orte_vpid_t i;
|
orte_vpid_t i;
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_NON_TOOL))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
@ -57,8 +57,7 @@ int main(int argc, char* argv[])
|
|||||||
jdata->map->display_map = true;
|
jdata->map->display_map = true;
|
||||||
#endif
|
#endif
|
||||||
/* launch the job */
|
/* launch the job */
|
||||||
fprintf(stderr, "Parent: My local rank is %ld with %ld num_local_procs - spawning children!\n",
|
fprintf(stderr, "Parent: spawning children!\n");
|
||||||
(long)orte_process_info.local_rank, (long)orte_process_info.num_local_procs);
|
|
||||||
if (ORTE_SUCCESS != (rc = orte_plm.spawn(jdata))) {
|
if (ORTE_SUCCESS != (rc = orte_plm.spawn(jdata))) {
|
||||||
ORTE_ERROR_LOG(rc);
|
ORTE_ERROR_LOG(rc);
|
||||||
orte_finalize();
|
orte_finalize();
|
||||||
|
@ -16,7 +16,7 @@ int main(int argc, char* argv[])
|
|||||||
int i;
|
int i;
|
||||||
double pi;
|
double pi;
|
||||||
|
|
||||||
orte_init(ORTE_PROC_NON_MPI);
|
orte_init(&argc, &argv, ORTE_PROC_NON_MPI);
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -28,7 +28,7 @@ int main(int argc, char* argv[])
|
|||||||
orte_app_context_t *app;
|
orte_app_context_t *app;
|
||||||
char cwd[OPAL_PATH_MAX];
|
char cwd[OPAL_PATH_MAX];
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_PROC_TOOL))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_TOOL))) {
|
||||||
fprintf(stderr, "orte_tool: couldn't init orte\n");
|
fprintf(stderr, "orte_tool: couldn't init orte\n");
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ main(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
orte_init(ORTE_PROC_TOOL);
|
orte_init(&argc, &argv, ORTE_PROC_NON_MPI);
|
||||||
|
|
||||||
Radix = atoi(argv[1]);
|
Radix = atoi(argv[1]);
|
||||||
NProcs = atoi(argv[2]);
|
NProcs = atoi(argv[2]);
|
||||||
|
@ -46,7 +46,7 @@ int main(int argc, char* argv[])
|
|||||||
int i;
|
int i;
|
||||||
double pi;
|
double pi;
|
||||||
|
|
||||||
orte_init(ORTE_PROC_TOOL_WNAME);
|
orte_init(&argc, &argv, ORTE_PROC_TOOL);
|
||||||
|
|
||||||
if (signal(SIGUSR1, sigusr_handler) == SIG_IGN) {
|
if (signal(SIGUSR1, sigusr_handler) == SIG_IGN) {
|
||||||
fprintf(stderr, "Could not setup signal trap for SIGUSR1\n");
|
fprintf(stderr, "Could not setup signal trap for SIGUSR1\n");
|
||||||
|
@ -26,7 +26,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
printf("CHILD starting: Node %s Pid %ld\n", hostname, (long)pid);
|
printf("CHILD starting: Node %s Pid %ld\n", hostname, (long)pid);
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_NON_TOOL))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "orte_nodename: couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "orte_nodename: couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ int main(int argc, char* argv[])
|
|||||||
double pi;
|
double pi;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
if (0 > (rc = orte_init(ORTE_PROC_NON_MPI))) {
|
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
|
||||||
fprintf(stderr, "spin: couldn't init orte - error code %d\n", rc);
|
fprintf(stderr, "spin: couldn't init orte - error code %d\n", rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ int main(int argc, char* argv[])
|
|||||||
opal_list_item_t *item;
|
opal_list_item_t *item;
|
||||||
char *model;
|
char *model;
|
||||||
|
|
||||||
if (ORTE_SUCCESS != orte_init(ORTE_PROC_NON_MPI)) {
|
if (ORTE_SUCCESS != orte_init(&argc, &argv, ORTE_PROC_NON_MPI)) {
|
||||||
fprintf(stderr, "Failed orte_init\n");
|
fprintf(stderr, "Failed orte_init\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user