Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Issues
  • #261
Closed
Open
Issue created Feb 01, 2017 by James Willis@jwillisDeveloper

Compilation error when HAVE_SETAFFINITY is disabled

When I disable affinity by commenting out #define HAVE_SETAFFINITY 1 in config.h I get the following compiler errors:

engine.c(3298): error: identifier "nr_affinity_cores" is undefined
      for (int i = 0; i < nr_affinity_cores; i++) printf("%i ", cpuid[i]);
                          ^

engine.c(3298): error: identifier "cpuid" is undefined
      for (int i = 0; i < nr_affinity_cores; i++) printf("%i ", cpuid[i]);
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking