LoongArch CPU Design Experiment_Practice Task 6: 20 Instructions Single Cycle CPU

Directory LoongArch CPU Design Experiment_Practice Task 6: 20 Instructions Single Cycle CPU statement Experimental requirements Code modification Mistake 1 Mistake 2 Mistake three Mistake four Mistake five Mistake six Replenish Complete code mycpu_top.v alu.v References LoongArch CPU Design Experiment_Practice Task 6: 20 Instructions Single Cycle CPU Statement Since the Loongarch cross-compilation tool failed to be […]

LoongArch CPU Design Experiment_Practice Task 5: 5 Instructions Single Cycle CPU

Directory Practical task 5: 5 instructions single cycle CPU Command format inst_ram code simulation References Practice task 5: 5 instructions single-cycle CPU This practical task requires: Read and understand the code provided in the experimental environment, and supplement the missing parts of the code so that the design can pass simulation and board verification. Please […]

Matlab multi-core CPU parallelism and multi-threading

Introduction The concepts that need to be understood here are: the differences between multi-core, multi-process, multi-thread, parallel computing, and concurrent computing. What is multi-core In the early days of computer design, single-processor systems evolved into multi-processor systems in response to the need for more computing performance. A more modern, similar system design trend is to […]

Linux performance analysis (7) CPU performance (2) How to understand the average load

1. How to understand load average ① How to check the average complexity Commands to view ‘system load’: top, ‘uptime’, w, ‘cat /proc/loadavg’, tload /proc/loadavg Thinking: What is the ‘meaning’ of uptime’s output in each column? Key points: ‘Current time’, ‘System running time’, ‘Number of logged in users’, ‘Average load’ ② Thinking: How to ‘observe’ […]

SolutionYour CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

Table of Contents SolutionYour CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 problem causes Solution 1. Compile TensorFlow source code 2. Install a lower version of TensorFlow in conclusion Sample code: AVX instruction set AVX2 instruction set Performance advantages and application scenarios Solution Your CPU supports instructions that this […]

DeepFaceDeployment 04Lightweight face recognition and facial attribute analysis framework deepface uses Docker to deploy two versions of CPU+GPU and cuDNN installation

Use Docker to deploy CPU + GPU 1.CPU 2.GPU 3.cuDNN installation 3.1 Prerequisites 3.2 Download Linux version cuDNN 3.3 Installation 1.CPU This description is based on DeepFace’s Docker image file deepface_image.tar. # 1. Import image docker load -i deepface_image.tar # 2. Create a model folder [and upload the downloaded model file] mkdir -p /root/.deepface/weights/ # […]

CPU registers and addressing modes

CPU registers and addressing modes 1 CPU register 2 Express data location 3 addressing mode 3.1 Direct addressing 3.2 Register indirect addressing 3.3 Register relative addressing 3.4 Base address index addressing 3.5 Relative base address indexed addressing 3.6 Proportional Indexed Addressing (SIB) This article belongs to ” One of the series of tutorials on the […]

windows code consumes memory and cpu stress test

A thread pool and a scheduled task To increase memory consumption, you also need to configure JVM parameters. java -jar -server -Xmx4096m -Xms4096m -Xmn4096m -Xss4096m pressureProgram-1.0-SNAPSHOT.jar pull memory java -jar -server -Xmx16m -Xms16m -Xmn16m -Xss16m pressureProgram-1.0-SNAPSHOT.jar Pull CPU package com.service.pressure.Task; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import java.util.concurrent.Executor; import java.util.concurrent.ThreadPoolExecutor; @Configuration @EnableAsync public […]

What to do if the CPU surges?

Online server CPU surges, how to locate Java code The key to solving this problem is to find the location of the Java code. The following will share the troubleshooting ideas, taking CentOS as an example, summarized in 4 steps. Step 1, use the top command to find the process that consumes a lot of […]