- 2 types of settings:
- on environment (your os system - linux, windows, mac)
- It will run your script on multiple cores (CPUs - processors)
- 2 types:
- type 0: taskset (some people said we should reset taskset due to the mixed settings of libraries like numpy, scikit-learn, scipy, pandas,....) ==> I tried but it is not working for tensorflow
- type 1: os.environ['NAME'] = 'CORES'
- type 2: os.sched_setaffinity(CORE_ID, {LIST_OF_CORE_IDS})
- on environment (your os system - linux, windows, mac)
- tensorflow operations