| Summary: | Information requested by API about threads not right | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Anton Brekhov <anton.brekhov> |
| Component: | Accounting | Assignee: | Tim Wickberg <tim> |
| Status: | OPEN --- | QA Contact: | |
| Severity: | C - Contributions | ||
| Priority: | --- | ||
| Version: | 20.02.2 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | -Other- | Slinky Site: | --- |
| Alineos Sites: | --- | Atos/Eviden Sites: | --- |
| Confidential Site: | --- | Coreweave sites: | --- |
| Cray Sites: | --- | DS9 clusters: | --- |
| Google sites: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | NoveTech Sites: | --- |
| Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Tzag Elita Sites: | --- |
| Linux Distro: | --- | Machine Name: | |
| CLE Version: | Version Fixed: | ||
| Target Release: | --- | DevPrio: | --- |
| Emory-Cloud Sites: | --- | ||
| Attachments: | slurm-19.05.3.patch | ||
Created attachment 14455 [details] slurm-19.05.3.patch We're requesting info about threads per core from slurm_job_cpus_allocated_str_on_node_id function by our golang agent. And we're getting an error. Here's the patch which helped us: ``` diff -Naur slurm/src/api/job_info.c slurm-19.05.3/src/api/job_info.c --- slurm/src/api/job_info.c 2019-11-27 09:44:27.244501674 +0000 +++ slurm-19.05.3/src/api/job_info.c 2019-11-27 10:00:33.123122670 +0000 @@ -1771,8 +1771,10 @@ /* get the number of threads per core on this node */ + _load_node_info(); if (job_node_ptr) threads = job_node_ptr->node_array[node_id].threads; + _free_node_info(); cpu_bitmap = bit_alloc(bit_reps * threads); for (j = 0; j < bit_reps; j++) { if (bit_test(job_resrcs_ptr->core_bitmap, bit_inx)){ ```