Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are There Existing Implementations for Assigning Specific Computations to Specific Processor Cores in OpenPiton and Linux? #139

Open
pychen121 opened this issue Nov 22, 2023 · 6 comments

Comments

@pychen121
Copy link

Hi,

I am working on a project that utilizes the OpenPiton framework and boots a Linux operating system. I seek to assign specific computations to designated processor cores. Has anyone attempted such an implementation? Alternatively, how can I modify the operating system scheduling to accomplish this objective?

@Jbalkind
Copy link
Collaborator

For our prior work we have simply used taskset which is a linux utility to put applications on specific cores.

@pychen121
Copy link
Author

@Jbalkind Thank you for your help. I will definitely try your suggestion.
Is it possible to set the direction of routers of a tile so that the output of a tile is always directed to an adjacent tile? If so, what files can I refer to and configure?

@Jbalkind
Copy link
Collaborator

This isn't really how openpiton works. The L2 cache is distributed across all tiles. Traffic depends on which parts of the address space are being accessed. Requests are routed via multiple tiles to get to their destinations.

@pychen121
Copy link
Author

@Jbalkind Thank you for your help. If I want to specify that the result of a code executed in Tile1 is stored at a specific address in the L2 cache, and Tile2 accesses this address to get the data for subsequent calculations, what files do I need to modify to achieve this effect?

@Jbalkind
Copy link
Collaborator

Jbalkind commented Dec 6, 2023

If you're running bare metal and you're writing C, then you can use whatever addresses you like in your C code. You don't need to modify the OpenPiton design to make that possible. You could check (and potentially change) which home allocation method (

home_alloc_method <= `HOME_ALLOC_MIXED_ORDER_BITS;
) you use to make the job easier.

@pychen121
Copy link
Author

@Jbalkind Thank you very much for your suggestions. I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants