Commit d6bfdeb8 authored by Ziwen Su's avatar Ziwen Su

Added gpu-bound option to Jobtag.

parent 0116f090
......@@ -137,11 +137,14 @@
<div class="p-col">
<p-checkbox name="jobtag2" label="compute-bound" [(ngModel)]="jobtag_2" binary="true" (onChange)="checkJobtags()"></p-checkbox>
</div>
<div class="p-col">
<p-checkbox name="jobtag5" label="gpu-bound" [(ngModel)]="jobtag_16" binary="true" (onChange)="checkJobtags()"></p-checkbox>
</div>
<div class="p-col">
<p-checkbox name="jobtag3" label="io-heavy" [(ngModel)]="jobtag_4" binary="true" (onChange)="checkJobtags()"></p-checkbox>
</div>
<div class="p-col">
<p-checkbox name="jobtag4" label="network-heavy " [(ngModel)]="jobtag_8" binary="true" (onChange)="checkJobtags()"></p-checkbox>
<p-checkbox name="jobtag4" label="network-heavy" [(ngModel)]="jobtag_8" binary="true" (onChange)="checkJobtags()"></p-checkbox>
</div>
</div>
</p-overlayPanel>
......
......@@ -44,7 +44,23 @@ const convert_jobtag_dict = {
12:"io-heavy and 1 more",
13:"memory-bound and 2 more",
14:"compute-bound and 2 more",
15:"memory-bound and 3 more"
15:"memory-bound and 3 more",
16:"gpu-bound",
17:"memory-bound and 1 more",
18:"compute-bound and 1 more",
19:"memory-bound and 2 more",
20:"gpu-bound and 1 more",
21:"memory-bound and 2 more",
22:"compute-bound and 2 more",
23:"memory-bound and 3 more",
24:"gpu-bound and 1 more",
25:"memory-bound and 2 more",
26:"compute-bound and 2 more",
27:"memory-bound and 3 more",
28:"gpu-bound and 2 more",
29:"memory-bound and 3 more",
30:"compute-bound and 3 more",
31:"memory-bound and 4 more"
}
class ValueInterval {
......@@ -150,11 +166,13 @@ export class SearchComponent implements OnInit {
jobtag_2: boolean;
jobtag_4: boolean;
jobtag_8: boolean;
jobtag_16: boolean;
jobtag_sum: number;
jobtag_str1: number;
jobtag_str2: number;
jobtag_str4: number;
jobtag_str8: number;
jobtag_str16: number;
selected_jobtags: string;
footprints: string[];
......@@ -294,6 +312,7 @@ export class SearchComponent implements OnInit {
this.jobtag_2= (localStorage.getItem('JTAGB'))==='true';
this.jobtag_4= (localStorage.getItem('JTAGC'))==='true';
this.jobtag_8= (localStorage.getItem('JTAGD'))==='true';
this.jobtag_16= (localStorage.getItem('JTAGE'))==='true';
this.selected_jobtags = localStorage.getItem('SELECTED_JTG');
}
......@@ -452,11 +471,13 @@ export class SearchComponent implements OnInit {
this.jobtag_2 = false;
this.jobtag_4 = false;
this.jobtag_8 = false;
this.jobtag_16 = false;
this.jobtag_sum = null;
this.jobtag_str1 = null;
this.jobtag_str2 = null;
this.jobtag_str4 = null;
this.jobtag_str8 = null;
this.jobtag_str16 = null;
this.selected_jobtags = null;
this.footprint_code = null;
this.footprint_name = null;
......@@ -549,7 +570,11 @@ export class SearchComponent implements OnInit {
this.jobtag_str8=8;
else
this.jobtag_str8=0;
this.jobtag_sum= this.jobtag_str1+this.jobtag_str2+this.jobtag_str4+this.jobtag_str8;
if ( this.jobtag_16 )
this.jobtag_str16=16;
else
this.jobtag_str16=0;
this.jobtag_sum= this.jobtag_str1 + this.jobtag_str2 + this.jobtag_str4 + this.jobtag_str8 + this.jobtag_str16;
this.selected_jobtags = convert_jobtag_dict[this.jobtag_sum];
}
filterFootprint(event: any) {
......@@ -634,6 +659,7 @@ export class SearchComponent implements OnInit {
localStorage.setItem('JTAGB', this.jobtag_2.toString());
localStorage.setItem('JTAGC', this.jobtag_4.toString());
localStorage.setItem('JTAGD', this.jobtag_8.toString());
localStorage.setItem('JTAGE', this.jobtag_16.toString());
if ( this.jobtag_sum && this.jobtag_sum != 0 ){
this.monitoringservice.addFilterItem('TAGS', this.jobtag_sum.toString());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment