Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96652464
groupwriter.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 29, 12:29
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Dec 31, 12:29 (2 d)
Engine
blob
Format
Raw Data
Handle
23222710
Attached To
R3130 Multi-level Scheduling in Large Scale High Performance Computers
groupwriter.c
View Options
/* Copyright (c) 2016 Aram_Yesildeniz All rights reserved. *
* original name hippie2 by Aram_Yesildeniz *
/*********************************************************************************
* Copyright (c) 2016 *
* modified and extended by Ali Omar abdelazim Mohammed <ali.mohammed@unibas.ch> *
* University of Basel, Switzerland *
* All rights reserved. *
* *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the license (GNU LGPL) which comes with this package. *
*********************************************************************************/
#include <stdio.h>
#include <string.h>
#include "groupwriter.h"
// functions for writing "scorep.fgp"
void
writeOptions
(
FILE
*
writeFile
)
{
fputs
(
"BEGIN OPTIONS
\n
"
,
writeFile
);
fputs
(
"
\t
MATCHING_STRATEGY=FIRST
\n
"
,
writeFile
);
fputs
(
"
\t
CASE_SENSITIVITY_FUNCTION_NAME=NO
\n
"
,
writeFile
);
fputs
(
"
\t
CASE_SENSITIVITY_MANGELED_NAME=NO
\n
"
,
writeFile
);
fputs
(
"
\t
CASE_SENSITIVITY_SOURCE_FILE_NAME=NO
\n
"
,
writeFile
);
fputs
(
"END OPTIONS
\n\n
"
,
writeFile
);
}
void
writeGroup
(
FILE
*
writeFile
,
int
job_ID
)
{
char
jobName
[
50
];
sprintf
(
jobName
,
"%s%d"
,
"BEGIN FUNCTION_GROUP JO"
,
job_ID
);
fputs
(
jobName
,
writeFile
);
memset
(
jobName
,
0
,
strlen
(
jobName
));
sprintf
(
jobName
,
"%s%d%s"
,
"
\n\t
NAME=JO"
,
job_ID
,
".*"
);
fputs
(
jobName
,
writeFile
);
memset
(
jobName
,
0
,
strlen
(
jobName
));
sprintf
(
jobName
,
"%s"
,
"
\n
END FUNCTION_GROUP
\n\n
"
);
fputs
(
jobName
,
writeFile
);
memset
(
jobName
,
0
,
strlen
(
jobName
));
fputs
(
"
\n
"
,
writeFile
);
}
Event Timeline
Log In to Comment