имя пакета в имени задач планировщика.
This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
|
||||
String userWorkspace;
|
||||
String packageWorkspace;
|
||||
String packageId;
|
||||
|
||||
int maxKernels;
|
||||
int busyKernels;
|
||||
int freeKernels;
|
||||
|
||||
String dvm_drv;
|
||||
String PATH;
|
||||
String LD_LIBRARY_PATH;
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
}
|
||||
void setParent(CompilationTask* parent_in) {
|
||||
parent = parent_in;
|
||||
binary_name = "spf_" + String(id) + "_" + matrix.Replace(' ', '_');
|
||||
binary_name = "spf_" + packageId+"_"+String(id) + "_" + matrix.Replace(' ', '_');
|
||||
}
|
||||
CompilationTask* getParent() {
|
||||
return parent;
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
String(int s) { body = to_string(s); }
|
||||
String(long s) { body = to_string(s); }
|
||||
String(long long s) { body = to_string(s); }
|
||||
String (string s){ body = s;}
|
||||
|
||||
void println() const { printf("[%s]\n", body.c_str()); }
|
||||
void addChar(char c) { body += c; }
|
||||
|
||||
@@ -106,10 +106,17 @@ public:
|
||||
static time_t getAbsoluteTime() {
|
||||
return time(NULL);
|
||||
}
|
||||
|
||||
static String getDate() {
|
||||
auto ttime = time(NULL);
|
||||
String res(ctime(&ttime));
|
||||
return res;
|
||||
}
|
||||
|
||||
static String getFileName(const String& path){
|
||||
int start_i = path.getBody().find_last_of('/');
|
||||
if (start_i != string::npos){
|
||||
return String(path.getBody().substr(start_i+1));
|
||||
}
|
||||
return String();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -115,6 +115,7 @@ int main(int argc, char ** argv)
|
||||
("PATH="+PATH).println();
|
||||
("LD_LIBRARY_PATH="+LD_LIBRARY_PATH).println();
|
||||
//--
|
||||
packageId =Utils::getFileName(packageWorkspace);
|
||||
#if __cplusplus >= 201703L
|
||||
std::filesystem::current_path(packageWorkspace.getCharArray());
|
||||
#else
|
||||
|
||||
@@ -1 +1 @@
|
||||
15
|
||||
16
|
||||
Reference in New Issue
Block a user