Questions tagged [core]
Use this tag to refer to processor cores or questions related to threads and parallel processing. For questions about .Net Core, please use the [.net-core] tag.
1,303
questions
0
votes
2
answers
30
views
Why future sequence runs this way?
Following code:
void main() async {
print("A");
await Future(() async { // Main future
print("B");
Future(()=>print("C"));
Future.microtask(()=>...
0
votes
0
answers
19
views
One microservice running as multiple processes
I have deployed a Java based micro-service on a 16 core linux machine.
When I run htop command, I see the microservice listed 10-14 times with different PID but all the values in the remaining columns ...
0
votes
0
answers
65
views
Could different CPU cores give different results of the same floating point operation?
My question is pretty straightforward and simple.
On a running program, could switching from one core to another on the same CPU, give rise to different results of the same set of values and ...
1
vote
0
answers
49
views
how to find the cpu usage of a process in each core?
I am trying to create something like process explorer in c# and I have several things that I have tried but I wasn't able to do:
find the cpu usage of a process in each cpu core
I want to see ...
1
vote
1
answer
56
views
Adjusting the affinity of an process for high core counts
I want to adjust the affinity of my program, but the number of cores is high
Is there a way that I can set all cores on the app by PowerShell code?
The number of cores is 64, and sometimes we use 112 ...
0
votes
1
answer
60
views
What is the difference between processor cores and SMP cores?
In figure 3.2 in the book Distributed Systems: fun and profit, it is mentioned:
Performance advantage of a cluster built with high-end server nodes (128 core SMP) over a cluster with the same number ...
0
votes
0
answers
43
views
multiprocessing.Pool for multi-threading in Python don't run multiple cores
In a cluster with 96 cores, I need to run a python function, that I called readInfo(filename) which read information from files. I have 90 files to read (each one requires 15 minutes to be read) and ...
0
votes
1
answer
70
views
What happens if I use more cores in QEMU than total available cores in host
I am running dhrystone benchmarking tool to see the performance of qemu-system-riscv64 which is running ubuntu 22.04 pre-installed image. Host machine has 2 cores with 1 thread each. I ran tests on ...
0
votes
2
answers
405
views
What does it mean when we say "4 cores 8 threads"?
When I run lscpu on my host, it shows
CPU(s): 8
Thread(s) per core: 2
Core(s) per socket: 4
My host has 4 physical CPUs, but 8 logical CPUs due to 2 threads per core. ok, "2 ...
1
vote
0
answers
15
views
Not Running on All Cores: Package Ecole
I'm using the package ecole within R, with the function found here (https://rdrr.io/github/phytomosaic/ecole/man/ord_nms.html), which may not be relevant.
I specify cores, and to run in parallel, but ...
1
vote
1
answer
172
views
Can CUDA cores run things absolutely parallel or do they need context switching?
Can a CUDA INT32 Core process two different integer instructions completelly parallel, without context switching? I know that it is not possible on a CPU, but on a NVIDIA GPU? I know that a SM can run ...
0
votes
0
answers
94
views
Start of the second core on the cortex a55 processor
I am studying the Chinese processor rk3568 (armv8 cortex a55 4 cores)
I found some information on how to run the second core. To do this, I use the PSCI interface from arm itself.
I have a small test ...
0
votes
0
answers
36
views
set up pbs file properly with an MPI based code
I have to use a cluster fon HPC. The cluster is based on the Portable Batch System (pbs).
It is not clear to me the difference between the number of cpus and the number of mpiprocs. I have indeed to ...
1
vote
0
answers
99
views
How to detect heterogeneous CPU topologies on Linux?
Many recent CPUs out there--Alder Lake from Intel and many big.LITTLE designs from ARM--have heterogeneous CPU topologies: some cores are faster than others. There exists good ways to detect such ...
0
votes
2
answers
223
views
Where does the third dimension (as in 4x4x4) of tensor cores come from?
As I understand, the Nvidia tensor cores multiplies two 4x4 matrices and adds the result to a third matrix. Multiplying two 4x4 matrices produces a 4x4 matrix, and adding two 4x4 matrices produces a ...
0
votes
1
answer
154
views
What is the meaning of -T10C and -T4C -am in goals
I would like to know the difference between -T4C and -T10C and how this multiple cores will impact in build timing.
1
vote
0
answers
690
views
Exception in thread "main" org.apache.spark.SparkException: Driver cores must be a positive number
I have problem with submit task in Mesos with cluster mode, first I using this syntax to running cluster mode on Mesos
$ cd spark
$ ./sbin/start-mesos-dispatcher.sh --master mesos://10.2.3.95:5050
...
1
vote
1
answer
3k
views
Convert nanocore to core CPU?
im confuse to convert nanocore to core of CPU
my formula is:
nanocore / 1000000000 = CORE (1000000000 is 1 billion)
if my linux os have 10 core.
I want to calculator percentage cpu usage. This formula ...
1
vote
1
answer
162
views
Optimal number of parallel processes for computation with a CPU with 6 cores and 12 threads
On a computer with an Intel CPU marketed "6 cores / 12 threads", I want to run as many processes as possible, each of them doing math similar computations (each process has a single thread) ...
0
votes
0
answers
19
views
Hunter package manager hangs in Python on a processor with large number of cores
Here's some Python code from the Hunter package manager:
#!/usr/bin/env python3
import argparse
import os
import sys
import multiprocessing
parser = argparse.ArgumentParser(description='File link ...
0
votes
1
answer
46
views
Server with multi-processor, how to launch code
I don't have a big knowledge in hardware, GPU and CPU so I'm trying to create it. I have a server with N processor, the description for each of them is more or less the following one:
processor : 63
...
-1
votes
0
answers
112
views
Why identical python code crashes laptop but not desktop?
I am running a python code on Pycharm on my laptop and after some time, I get the error
numpy.core._exceptions.MemoryError: Unable to allocate 20.8 MiB for an array with shape (2730019,) and data type ...
1
vote
1
answer
1k
views
Using srun : how to set number of nodes and cores
I am new to using commands like srun.
I want to launch a parallel job using 1 node 1cpu and 16 cores, but i dont know what i should indicate when using srun function. (1 node is composed of 2 CPUs ...
-1
votes
1
answer
144
views
Discrepancy in output of lscpu
I have a question about the performance impact when two boxes of same spec shows different results
Box1:
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: ...
0
votes
1
answer
2k
views
Use all cores with python multiprocessing
I wrote a test-purpose snippet to use multiprocessing to work on all cores of my laptop. I have a 8 core cpu. Below the (basic) code:
import os
import time
import multiprocessing
def worker(n):
...
0
votes
0
answers
98
views
cache coherence - unsure how this works
given this prelude:
consider a system with 2 cores, P1 and P2 using write back and write
allocate schemes.
the addresses A1 and A2 are mapped to the same cache block but A1 IS
not equal A2. Initial ...
1
vote
1
answer
71
views
how does the diagram for this statement look like in multithreading
I have come across this statement and I am wondering how it should be interpreted, please be patient with me thank you.
"Given a multi core system Pr1 and Pr2. The addresses Add1 and Add2 are ...
1
vote
1
answer
139
views
Do we count the main thread when we compute the recommended number of threads that we can create in C using Pthreads?
I have a computer with 1 cpu, 4 cores and 2 threads per core that can run. So I have effiency with maximum 8 running threads.
When I write a program in C and create threads using pthred_create ...
1
vote
1
answer
440
views
ESP32 Cores are freezing when controlling two LED strings
So for the last week, I have been dealing with an issue with my ESP32. For background information, I am working on a Music Meter project. My goal is to have the ESP32 sample two audio signals, and ...
-1
votes
1
answer
63
views
If a CPU core has two threads, how can let's say a loop in python send 50 requests at once if it's not a 25 core CPU?
As the title reads, my question is:
If a CPU core has two threads, how can let's say a loop in python send 50 requests at once if it's not a 25 core CPU?
2
votes
0
answers
311
views
How to re-enable CPU Cores after isolcpus
I'm running some processes on a Jetson NX and I was trying to isolate 3 of the cores so I could use taskset and dedicate them to my python script which incorporated multi processing. To do this, I ...
0
votes
0
answers
51
views
How to run a Python program with specified number of cores and track it's memory and execution time?
I am looking to vary the number of cores my Python program uses, then measure the corresponding memory usage and execution time the program consumes when using the specified number of cores. ...
2
votes
1
answer
1k
views
R: Understanding the impact of "makePSOCKcluster"
I am using the R programming language. Recently, I came across the following function in R makePSOCKcluster, which can be used to "accelerate" the speed at which R can perform certain tasks (...
0
votes
1
answer
99
views
firebase_core throw this error when i start building the project
when i try to run the app it shows me this error
Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went ...
0
votes
0
answers
67
views
why java parallel programming shows unpredictable results? [duplicate]
Test environment: MacBook Pro 8-core.
Code
StopWatch stopWatch = new StopWatch();
stopWatch.start();
Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9)
.parallelStream()
.peek(i -> {
try {
...
3
votes
1
answer
642
views
Get Core Count in Python (NOT THREAD COUNT)
I was trying to find a way to get the number of CPU cores somebody has using Python.
Almost all the answers I found were either:
multiprocessing.cpu_count()
or
os.cpu_count()
While these options are ...
0
votes
0
answers
208
views
Is this the correct way to "parallelize" code in R?
I am working with the R programming language. I came across this link over here which shows how to "parallelize" your code : https://www.r-bloggers.com/2017/10/running-r-code-in-parallel/
As ...
0
votes
1
answer
148
views
difference between concurrency and parallelism in multiple cores?
I know the difference between parallelism and concurrency but want to know more about concurreny in multiple cores?
what is the difference between concurrency and parallelism in multiple cores?
can ...
1
vote
1
answer
208
views
how to control potential fork bomb caused by mclapply, tried ulimit but didn't work
I am using mclapply in my R script for parallel computing. It saves overall memory usage and it is fast so I want to keep it in my script. However, one thing I noticed is that the number of child ...
0
votes
0
answers
2k
views
How to install @babel/core of specific version?
I want to install a specific version of @babel/core. Can anyone help with the command to achieve it?
0
votes
0
answers
60
views
I'm asking this question because I want to use GCP IOT CORE like this
I want to make it like this.
The message is stored in PUB/SUB through IOT CORE.
But the message cannot be read by other devices.
I know event,config,state in the topic in IOT CORE.
Is there any way to ...
0
votes
1
answer
267
views
Why only one core used instead of 32 in my spark-submit command?
Hi and thank you for your help,
I know that there are a lot of topic with this issue, I read a lot of them, try a lot of solution but nothing happens, my spark-submit job is still ONLY use one core on ...
0
votes
1
answer
651
views
Run one function on different CPUs
I have one machine with two CPUs, and each CPU has different number of cores. I have one function in my python code. How can I run this function on each of the CPUs?
In this case, I need to run ...
3
votes
0
answers
154
views
SwiftUI unintentional Root View navigation from sheetView
I'm having an issue with navigation view and using a popup view to add a core data object. When I dismiss the view instead of going one view back it goes to the root view. This is frustrating ...
2
votes
0
answers
49
views
Haskell Twitch (high level file watcher DSL) executing 2 times
I want to use Twitch package to copy any javascript files in the "central" directory to the "back" and "front" directories. This is the code:
{-# LANGUAGE ...
0
votes
1
answer
129
views
how to permanently edit coredump_filter file and apply immediately without reboot?
is there any way to permanently edit coredump_filter file and apply immediately without reboot.
temporary I can do like
echo 0x0 > /prod/self/coredump_filter
but this for current session only. i ...
1
vote
3
answers
268
views
How to shortly add 1 to several variables in Python?
If we have chance to do so:
a, b = 1, 4
Maybe we have chance to iterate several variables simultaneously like this?
a, b += 1, 2
0
votes
1
answer
219
views
multiprocessing in Python not using all cores
I am trying to process several folders that contain many rasters; in each folder, there are rasters with different dates on the same area. In order to save some time, I want to use the multiprocessing ...
0
votes
1
answer
356
views
how to run python program on specific core?
Say, I have a python file - file1.py with arg --in
python file1.py --in 10
I have 8 core Unix machine, I want to run 8 times same script (infinite loop) (diff --in value) which should run in 8 ...
0
votes
2
answers
673
views
How do I fetch a date range of a week to extract from core data?
How do I query a date range in Swift code data IOS? If I store attributes: date, breakfast meals, lunch meals. How can I query what meals I ate this week?