Questions tagged [multicore]

Multicore programming covers techniques for making programs run in parallel, by exploiting hardware with multiple processing cores.

Filter by
Sorted by
Tagged with
1 vote
0 answers
61 views

Is there a multicore option to compress a NumPy array?

I'm using np.savez_compressed() to compress and save a single large 4D NumPy array, but it uses only one CPU core. Is there an alternative, which can use many cores? Preferably something simple ...
Paul Jurczak's user avatar
  • 7,148
0 votes
0 answers
55 views

How data dependency handled at cpu instructions pipeline parallelism

I am trying to understand the instructions parallelism in case of multi-core or multiprocessor CPUs. In a modern CPU typically contains more CPUs which can execute the Instructions parallel. These ...
shivakumar's user avatar
0 votes
0 answers
33 views

Can I start one i3 logical core in cache-as-ram mode while it's partner accesses dram?

Continuing my study of cache-as-ram mode for x64 cores: I did not see any reason given in either discussions or documentation whether both of a pair of logical i3 cores during hyperthreading had to be ...
eternalsquire's user avatar
0 votes
1 answer
31 views

Pyton multicore processing with Dask progress bar not showing

I have a database table 'Sensor_Data' with sensor data form different locations having columns, id, timestamp, value. Each id corresponds to a sensor in a particular location. I am trying to use ...
obaid malik's user avatar
0 votes
1 answer
30 views

How to return a variable from a function in a multi core environment?

So i have a variable which must be available to other tasks in the system. I have a function which should return this variable so other tasks can do their thing according to this variable. boolean ...
Dr.Random's user avatar
  • 450
0 votes
1 answer
101 views

OpenMP multiple FIFO task queues

I am new to OpenMP so took some time to figure out the right way to ask the question so that its easier for experts to understand my queries. I am been trying to formulate the best way to ask the ...
DrBug's user avatar
  • 2,004
0 votes
2 answers
65 views

OpenMP enforce the order in which tasks are created

I am new to OpenMP and think my use case is not simple - hence looking for pointers on approach. Is there a way to enforce execution of tasks in order they are spawned in OpenMP? What I want to ...
DrBug's user avatar
  • 2,004
0 votes
0 answers
64 views

Spawning tasks for asynchronous work in OpenMP

I am new to openMP and I was wondering if someone can review my approach. Problem: I have sequential arrival of data from a device which has data from many sensors. I think I can parallely process ...
DrBug's user avatar
  • 2,004
1 vote
0 answers
21 views

How is the load distributed among the processor cores? [duplicate]

The other day I was thinking about how the scheduler works in multi-threaded environments and how the load is distributed among the processor cores. I read about the green threads in JVM that the ...
AntLet's user avatar
  • 11
0 votes
0 answers
38 views

How to power up cores 2 and 3 on XU7

In Vitis 2022.2, when creating multiple applications to run on the 4 Cortex A53 cores of the Xilinx XU7 MPSoC, I get the message "cannot reset Cortex-A53 #2. Core is powered down" when ...
Willie Visagie's user avatar
0 votes
0 answers
16 views

I used McPat to get the power file and how I want to convert it to a format that HotSpot recognizes

I got the power file using McPat, and the content format is as follows Processor: Area = 193.678 mm^2 Peak Power = 130.943 W Total Leakage = 33.2925 W Peak Dynamic = 97.6503 W Subthreshold Leakage = ...
JunYH's user avatar
  • 5
0 votes
0 answers
21 views

Is it possible to run Python code on multiple cores from within SPSS?

I am doing data management on a rather large dataset in SPSS. At one stage I want to shrink a string variable containing ICD-codes (3-5 letters and digits) by removing duplicates within each case. To ...
Björn Ahlström's user avatar
-1 votes
1 answer
50 views

If the mutlcore system runs only one core, the one core is always same?

I wonder that in the case one core is enough to run, is the only one specific core used? If so, the performance of the one core will decrease, compared to the other core. Maybe it is not good for ...
kokoidos's user avatar
1 vote
1 answer
54 views

Singlethread, Multithread, Synchronous, Asynchronous - How do these combine?

Every illustration and explanation concerning this topic that I came across do not seem to be consistent with each other. I illustrated my understanding of the combinations of these concepts. Can ...
Kakamotobi's user avatar
0 votes
0 answers
185 views

Aurix TC3xx microcontroller - how to access shared variables from separate cores

I am working on a multicore Aurix TC3xx microcontroller based on the Infineon TriCore Architecture. I want to access the static variable from two cores in a safe way. Let's say I have one static ...
marcin214's user avatar
0 votes
0 answers
28 views

Values not saved when trying to run multicore using std::async

I have a two-dimensional array (std::array) that is filled by calling a function (predict function of a frugally-deep model) in a two-dimensional nested for-loop and assigning that value to the array. ...
david-palm's user avatar
0 votes
3 answers
252 views

R terra:: cumulative sum reset function across layers of a stack

I have a stack with large number of layers, and I want to run a pixel-wise cumulative sum function across the layers with reset when sum becomes <0. Ive compiled the following code: # given that &...
tabumis's user avatar
  • 106
3 votes
1 answer
112 views

How to boot 2 operating systems in a single QEMU instance?

I try to model a multicore CPU with a service core using QEMU. eg. A 3-core CPU where Linux runs on 2 cores, and an RTOS runs on the 3rd core. The communication should be based on shared memory. ...
segfault's user avatar
  • 499
0 votes
1 answer
409 views

Can I dedicate a task to the second core of an ESP32 with nanoFramework?

I've been looking at examples on how to assign a task/function to one of the specific cores available on the ESP32. The examples I found are mainly in C++ for Arduino. It uses the function ...
CobyC's user avatar
  • 2,128
6 votes
1 answer
153 views

Why does a python function work in parallel even if it should not?

I am running this code using the healpy package. I am not using multiprocessing and I need it to run on a single core. It worked for a certain amount of time, but, when I run it now, the function ...
Simone Sartori's user avatar
0 votes
0 answers
357 views

How does Linux kernel automatically migrate threads (to balance load or otherwise)?

I looked at this Q&A How does Linux kernel migrate the process among multiple cores? and I guess it's somewhat clear how the tasks are migrated to different cores via sched_setaffinity() But I am ...
ledonter's user avatar
  • 1,649
2 votes
1 answer
58 views

Does 100% use of some core impacts performance of a process ( C++, multithreaded ) which is running on different core in Linux?

In a 32 core system, a process(A) consumes 4 core fully (400% cpu usage in top). Rest of the cores are avialble. Does it impact the performance of another process(B)? Will process(B) run better if ...
Halder's user avatar
  • 45
0 votes
1 answer
101 views

I had an SOC with two coprocessors R52 and A55. Both had PMU registers. Is there any possibility to acees both PMU registers from single code

I use the code below to access the PMU register of the core A55. Is there any similar way to access the same register on the R52? asm volatile("mrs %0, pmccntr_el0" : "=r" (value));...
SARATH's user avatar
  • 1
0 votes
0 answers
32 views

multiprocessing with Process library does not give results

I'd like to do multi-core processing on very long lists (not numpy arrrays!), but I can't get it to work. The examples I find do not help much either. My idea is to split that vector in several equal-...
user9165100's user avatar
5 votes
1 answer
888 views

How to implement atomic operation(s) on multi-core Cortex-M0/M0+ (no SWP, no LDREX/STREX)?

Pre ARMv6 MPUs/MCUs have SWP instruction (e.g. good ole and still alive ARM7TDMI). In ARMv6 architecture LDREX/STREX pair has been introduced and SWP removed. However with one exception – ARMv6-M (...
jdx's user avatar
  • 130
0 votes
0 answers
141 views

Are static variables shared across cores in the AArch64 architecture? [duplicate]

I've been messing around with a custom boot loader for my Raspberry Pi 3B. I've found that, if I use a static variable in a function, all cores share the same value for that static variable. Here's ...
pwasoutside's user avatar
0 votes
1 answer
157 views

counting upto billions for multicore processor C++ 11 or higher

#include <iostream> using namespace std; volatile int counter = 0; int main(int argc, char** argv){ size_t nb_iter = 1000000000; for( int i=0; i<nb_iter; i++){ counter ++; ...
Bomjan Rajib's user avatar
0 votes
0 answers
253 views

Does the Linux scheduler need to execute on every core in a multicore?

Is it possible for a kernel scheduler thread executing on one core to handle the scheduling of threads/processes for a different remote core, or is it necessary for every core to have their own kernel ...
ballsmahoney's user avatar
0 votes
1 answer
835 views

Can node.js worker threads run on all CPUs and all cores?

I understand that node.js can run on multiple cores on at least one CPU. What's not clear to me is whether it can run on more than one CPU. For example, if I have a 4-CPU machine with 10 cores in each ...
Dean's user avatar
  • 741
3 votes
1 answer
629 views

Launching core 1 on the RP2040 with baremetal assembly

As I understand the documentation, 2.8.2, the process of launching core 1 is to send a sequence of values, with the final 3 being the vector table, stack pointer, and entry point, over the FIFO, while ...
Will Thomas's user avatar
2 votes
2 answers
241 views

Running two functions at the exact same time on multiple cores

I have a C program which creates two threads (apart from main), T1 and T2. T1 executes a function which issues an operation O1 and T2 executes a function which issues an operation O2. void* f1() { ...
Sathvik Swaminathan's user avatar
0 votes
1 answer
59 views

how are two processes allocated to the same logical CPU executed?

I'm on the 12th gen Intel CPUs with hyperthreading enabled. From my lscpu output, I can see that logical cores 0 and 1 both map to physical core 0. I understand that if I allocate processes P0 and P1 ...
cool_cat's user avatar
0 votes
0 answers
76 views

How to ensure writes are visible to other cores

I have the following situation: Process 1 (on core 1): set_nonzero_8byte_posix_shm_memory_to_zero(); run_a_function(); Process 2 (on core 2): uint64_t v = read_that_8byte_posix_shm_memory(); if (v != ...
Mihir Shah's user avatar
0 votes
0 answers
56 views

Is it possible to change the processor core at each iteration in a for loop C++/Qt

I'm trying to write to a memory from a raspberry pi. In order to write well I have to respect some delays, however I noticed from an oscilloscope that my writing sequences (which is looped as many ...
kgt56's user avatar
  • 1
2 votes
1 answer
270 views

Are load and store operations in shared memory atomic?

I'm trying to figure out whether load and store operations on primitive types are atomics when we load/store from shared memory in CUDA. On the one hand, it seems that any load/store is compiled to ...
Pierre T.'s user avatar
  • 380
0 votes
3 answers
1k views

Is there any way to know which processes are running on which core in QNX

My system is running with QNX6.5 and it has 4 cpu cores. But I don't know which and all processes are running in each core. Is there any way to know in detail. Thanks in advance
Fasal_vk's user avatar
7 votes
1 answer
2k views

JAX pmap with multi-core CPU

What is the correct method for using multiple CPU cores with jax.pmap? The following example creates an environment variable for SPMD on CPU core backends, tests that JAX recognises the devices, and ...
DavidJ's user avatar
  • 356
0 votes
1 answer
83 views

Assigning different types of tasks to the same `foreach` loop

Many are familiar with foreach() to assign a loop across many cores in parallel using %dopar%. However, in R how do you send a single job request for a variety of different types of tasks for ...
Timothy M Pollington's user avatar
2 votes
0 answers
101 views

very high memory consumption from ocaml multicore

For testing OCaml multicore, I installed opam version 4.12.0+domains+effects and implemented quicksort using tasks. To my surprise, even the purely sequential version has very high memory consumption ...
David Monniaux's user avatar
0 votes
1 answer
56 views

How does multithreaded programs compile and run by linux in multicore-cpu machine today?

I wrote multithreaded programs using PThreads. My system has 4 cores and 8 logical cores, os x84-64 and I don't know what the compiler will compile to support the multithreaded task to run on multiple ...
ywen's user avatar
  • 1
7 votes
3 answers
4k views

Deno on multi-core machines

In Node.js there is the cluster module to utilize all available cores on the machine which is pretty great, especially when used with the node module pm2. But I am pretty stoked about some features of ...
Ms01's user avatar
  • 4,462
0 votes
2 answers
621 views

Data memory barrier(DMB) instruction does block cores in ARM multicore architecture?

I read memory barrier in ARM architecture reference manual, and I saw the data memory barrier (DMB) instruction. My question is does DMB instruction(especially 'dmb ish') block cores? For example, ...
user3300987's user avatar
0 votes
1 answer
158 views

How Can I Limit CPU core to specific thread in C#

In my program, UDP data is sent and received regularly. If only this one program runs on the entire computer, the result is normal. However, if other operations are performed at the same time (such as ...
ledoen's user avatar
  • 11
1 vote
3 answers
650 views

What situations do single core threading beat threads across cores

Im trying to find real world examples where there might be more advantages to running threads on a single core vs spanning multiple cores. Is there a cost to spawning threads across cores vs spawning ...
Chris Owen's user avatar
0 votes
1 answer
70 views

Are concurrent write operations into the same word transactional?

If 0b000000000 and 0b11111111 written simultaneously into the same memory address may it end up to something like 0b10110011 or it always will become either 0b000000000 or 0b11111111? Is there any ...
Slaus's user avatar
  • 2,106
1 vote
0 answers
1k views

future package deprecated - issues with plan("multisession"); how can I force plan("multicore")?

It seems that for me at least multicore parallelisation is not working with varimpact. I tried to create an example, please see below: I am using macOS Big Sur, MacBook Air (M1, 2020), 16 GB RAM, 8 ...
Daniela Rodrigues's user avatar
0 votes
1 answer
267 views

Multi-thread programming with logical threads

The theory of multirhead programing explained is based on the number of cores, but nowdays processors have more logical cores than physical ones. The question is, if a well-implemented parallel ...
The_Fenrir's user avatar
0 votes
0 answers
73 views

Why adding more cores to simulate multi-threaded program increases the CPI?

Hello I'm using the Rocket Chip repository with Rocket Tools and while running some of the test on different chip configurations I've found this counter-intuitive behavior. I have a default chip with ...
Nico's user avatar
  • 1
0 votes
0 answers
533 views

How to make R use more CPU in Random Forest

I have wrote a code that uses randomForest function for predicting results for a dataframe with 240 columns and 1700 rows. (It use 240 variables for prediction and there are 1700 records for train). ...
Sina Alvandi's user avatar
0 votes
2 answers
311 views

mpi_run on multicore architecture --bind-to l3 or --bind-to core

I am running a code on a 24c architecture and would like to use one mpi rank for each set of three cores bound to a L3 cache bloc. So, 8 mpi ranks per socket, 16 per node, with 3 threads per rank. I ...
kiriloff's user avatar
  • 25.8k

1
2 3 4 5
25