Skip to content

Commit

Permalink
Updates res
Browse files Browse the repository at this point in the history
  • Loading branch information
adityauj committed Sep 1, 2024
1 parent 5cc7fc6 commit 838ebb3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions internal/graph/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/99designs/gqlgen/graphql"
"github.com/ClusterCockpit/cc-backend/internal/graph/model"
"github.com/ClusterCockpit/cc-backend/internal/metricdata"
"github.com/ClusterCockpit/cc-backend/pkg/archive"
"github.com/ClusterCockpit/cc-backend/pkg/log"
"github.com/ClusterCockpit/cc-backend/pkg/schema"
// "github.com/ClusterCockpit/cc-backend/pkg/archive"
Expand Down Expand Up @@ -48,14 +47,14 @@ func (r *queryResolver) rooflineHeatmap(
continue
}

metricConfigs := archive.GetCluster(job.Cluster).MetricConfig
resolution := 0
// metricConfigs := archive.GetCluster(job.Cluster).MetricConfig
// resolution := 0

for _, mc := range metricConfigs {
resolution = max(resolution, mc.Timestep)
}
// for _, mc := range metricConfigs {
// resolution = max(resolution, mc.Timestep)
// }

jobdata, err := metricdata.LoadData(job, []string{"flops_any", "mem_bw"}, []schema.MetricScope{schema.MetricScopeNode}, ctx, resolution)
jobdata, err := metricdata.LoadData(job, []string{"flops_any", "mem_bw"}, []schema.MetricScope{schema.MetricScopeNode}, ctx, 0)
if err != nil {
log.Errorf("Error while loading roofline metrics for job %d", job.ID)
return nil, err
Expand Down

0 comments on commit 838ebb3

Please sign in to comment.