Closed K1ngRay closed 1 year ago
You should not mix interfaces
Regards Michał
You should not mix interfaces
- In the code you initialize library using MSR interface
- pqos -s uses OS interface is avaialble. To use msr interface with pqos command please use --iface=msr parameter
Regards Michał
Thank you!
Firstly, call the API in the code to set COS and print it out, and the displayed result is correct.
`int main(){
}`
`int print_allocation_config(const unsigned l3cat_id_count, const unsigned *l3cat_ids){
}`![image](https://github.com/intel/intel-cmt-cat/assets/33110686/9d54ea1b-5a99-4efb-b2ad-78a2d5e6e603)
But when I used![image](https://github.com/intel/intel-cmt-cat/assets/33110686/58db1280-c421-4f78-8a9f-3a72ad1ec589)
pqos - s
, the result of displaying cos did not change, and all cos masks were default 0xfffff. Why is this?Interestingly, when I modify code to only print cos later, the result was indeed the one I set last time. `int main(){
}`![image](https://github.com/intel/intel-cmt-cat/assets/33110686/3bf78a87-6f51-49c8-b473-54087a30bea6)
So did I successfully modify it?