Page MenuHomec4science

groupwriter.c
No OneTemporary

File Metadata

Created
Sun, Dec 29, 12:29

groupwriter.c

/* 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("\tMATCHING_STRATEGY=FIRST\n", writeFile);
fputs("\tCASE_SENSITIVITY_FUNCTION_NAME=NO\n", writeFile);
fputs("\tCASE_SENSITIVITY_MANGELED_NAME=NO\n", writeFile);
fputs("\tCASE_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\tNAME=JO", job_ID, ".*");
fputs(jobName, writeFile);
memset(jobName, 0, strlen(jobName));
sprintf(jobName, "%s", "\nEND FUNCTION_GROUP\n\n");
fputs(jobName, writeFile);
memset(jobName, 0, strlen(jobName));
fputs("\n", writeFile);
}

Event Timeline