имя пакета в имени задач планировщика.

This commit is contained in:
2025-03-13 20:10:28 +03:00
parent 4ce7190905
commit 8fc70d48ad
9 changed files with 26 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ import Common.Utils.Vector_;
import java.util.Vector;
public class Constants {
public static final int version = 1208;
public static final int planner_version = 15;
public static final int planner_version = 16;
public static final int testingMaxKernels = 64;
//--
public static final String ApplicationFileName = "VisualSapfor.jar";

View File

@@ -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;

View File

@@ -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;

View File

@@ -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; }

View File

@@ -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();
}
};

View File

@@ -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

View File

@@ -1 +1 @@
15
16