pppmc

1 篇文章 0 订阅

实验平台文档
本页包含实验平台的文档,包括安装和使用说明。实验平台由操作磁盘映像和软件程序组成,用于自动执行在 ODROID-XU3 开发板上运行工作负载的过程,并记录电源、电压、性能计数器 (PMC)、温度等。虽然该平台适用于ODROID-XU3,但软件中的许多模块可以与其他平台一起使用。

如果您在研究中使用我们的软件,请引用我们的论文来确认我们:

沃克;S. 迪斯特尔霍斯特;A. 汉森;A. K. 达斯;S. 杨;B.M哈希米;G. V. Merrett,“移动和嵌入式CPU的准确和稳定的运行时功率建模”,载于IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems,vol.PP, no.99, pp.1-1, doi: 10.1109/TCAD.2016.2562920

这些说明适用于我们的ODROID-XU3实验平台软件。我们还制作了用于在ODROID-XU4上运行实验的软件(仅限PMC和利用率,没有功率传感器数据 - 不能与模型构建软件一起使用)。要在ODROID-XU4上安装和使用此软件,请按照说明操作,但要使用XU4 的实验平台软件。例如,要下载:

wget http://www.powmon.ecs.soton.ac.uk/downloads/experiment-platform-software-xu4/experimental-platform-software-xu4-2016-03-04.tar.gz
相应地替换链接和文件夹名称。

1 个概述
此软件需要两个关键组件才能正常工作:

自定义磁盘映像(启用内核功能,如用户空间调控器)
软件工具本身
运行试验还需要工作负荷。

有两种不同的实验类型:

PMC 探索 - 频率和内核掩码固定的位置,实验迭代一组 PMC 事件。
模型构建 - 其中PMC是固定的(Cortex-A7上的5个和Cortex-A15上的7个),并且实验可以在多个频率和核心掩模下运行。
这些名称对应于这样一个事实,即当与我们的模型构建软件一起使用时,第一个实验类型用于选择在功率模型中应使用哪些PMC,第二个实验类型收集用于构建模型本身的数据。

本部分概述了安装软件和运行试验以收集数据的步骤。

阿拉伯数字设立董事会
2.1下载并安装操作系统
步骤概述:

下载OS 磁盘映像,该映像可在"下载"部分找到。
(推荐)使用我们的磁盘映像检查磁盘映像,以确认其未损坏。md5sum
提取图像
将图像写入 SD 卡(必须为 16 GB 或更大)
启动主板并使用串行适配器或 ssh 进行测试(用户名为 ,密码和 ssh 端口为 )。odroidodroid-8132222
2.1.1Ubuntu 的分步示例
创建工作目录:

mkdir exp-platform-image
进入创建的目录

cd exp-platform-image
下载图片:

wget http://www.powmon.ecs.soton.ac.uk/downloads/experiment-disk-image/ubuntu-14.04.1lts-lubuntu-odroid-xu3-20150212-power-model-20160207-r.img.xz
下载 md5sum 文件:

wget http://www.powmon.ecs.soton.ac.uk/downloads/experiment-disk-image/ubuntu-14.04.1lts-lubuntu-odroid-xu3-20150212-power-model-20160207-r.img.xz.md5sum
检查磁盘映像的校验和是否与文件中的校验和匹配。要查看磁盘映像的 md5sum,请执行以下操作:

md5sum ubuntu-14.04.1lts-lubuntu-odroid-xu3-20150212-power-model-20160207-r.img.xz
此命令的输出应与 *.md5sum 文件的内容相同,可以使用以下命令查看该文件:

cat ubuntu-14.04.1lts-lubuntu-odroid-xu3-20150212-power-model-20160207-r.img.xz.md5sum
解压缩磁盘映像(警告:提取的映像将占用 16 GB 的磁盘空间!):

tar -xJvf ubuntu-14.04.1lts-lubuntu-odroid-xu3-20150212-power-model-20160207-r.img.xz
现在图像需要写入microSD卡

(未插入卡)观察磁盘列表:

sudo fdisk -l
插入microSD卡并再次运行该命令:

sudo fdisk -l
列表中的新磁盘应为 SD 卡。

使用 将磁盘映像闪存到 SD 卡。警告:如果使用不当,此命令可能会损坏您的计算机。不要执行以下步骤,除非您确信使用dd命令并且使用的是正确的磁盘。如果您满意,请执行以下命令,其中是要闪烁到的SD卡的ID。ddCARD_ID

sudo dd if=ubuntu-14.04.1lts-lubuntu-odroid-xu3-20150212-power-model-20160207-r.img of=/dev/CARD_ID bs=1M
命令完成后,使用该命令确保所有数据都写入卡。ddsync

sudo sync
该卡现在已准备就绪,可供使用

3 个使用开发板
对于电路板的一般用途,应查阅ODROID网站和在线教程。我们在下面提供了一些快速指针。请记住,我们图像的用户名是 ,密码是 ,默认的ssh端口是。我们发现,在我们的ODROID-XU3板上,以太网端口是,而在ODROID-XU4上,它是。odroidodroid-8132222eth0eth1

3.1使用串行(USB-UART 桥接)终端
USB-UART 桥接电缆允许将笔记本电脑直接插入 ODROID 板,并具有远程终端窗口。虽然终端不像使用SSH那样工作,但它不需要网络工作,并且设置更简单。对于运行快速实验,串行终端是可以的,对于更复杂的事情,强烈建议设置网络并使用ssh。

将 USB 电缆从 USB-UART 桥接设备连接到笔记本电脑。

可能必须安装这些驱动程序。

3.1.1苹果电脑
打开终端应用程序并运行以下命令:

screen /dev/tty.SLAB_USBtoUART 115200
3.1.2Linux
Minicom值得推荐。

3.1.3窗户
打开以识别哪个 COM 端口是 USB-UART 桥接设备。Device Manager

下载并打开普蒂

单击串行单选按钮(屏幕右侧)

输入 COM 端口名称,例如 和 115200 作为波特率COM4

3.2使用网络和 SSH
以下是在开发板上使用 SSH 的一些提示。更详细的教程可以在网上找到。

在设置网络时,可能需要更改文件中的设置。/etc/network/interfaces

通过 ssh 连接到开发板的示例:

ssh -p 2222 odroid@192.168.2.12
要连接到的开发板的地址在哪里。192.168.2.12

所有主板的密码为 。odroid-813

最好用于管理多个终端会话,并在与 ssh 连接断开连接时保持这些会话的运行。有很多教程。为方便起见,下面显示了一些简单的命令:screen

3.2.1屏幕
登录后,最好开始会话:screen

screen -S temp
这将创建一个名为 的屏幕会话。temp

如果出现临时网络故障,则可以重新连接到屏幕会话,它会保留您的位置。

要在被切断后重新连接,请运行:

screen -r temp
如果这不起作用,请尝试:

screen -r -d temp
作为参考,要从屏幕会话中退出,请键入:CTRL+a,然后键入 d

4 个下载并安装软件工具
这些软件工具用于收集和处理外部数据。这些工具的输出文件可用于使用分析软件构建功率模型。

4.2下载软件(假设主板已连接到互联网)
(使用开发板本身)导航到该目录。/home/odroid

将实验平台软件下载到该目录中:

wget http://www.powmon.ecs.soton.ac.uk/downloads/experiment-platform-software/experimental-platform-software-2016-02-09.tar.gz
4.1下载软件(机上无互联网连接)
在另一台计算机上下载实验平台软件,并使用记忆棒复制到电路板(在目录中)。要将记忆棒安装到主板上,请使用识别卷的名称并安装它做一个目录。例如:/home/odroidfdiskmount

sudo fdisk -l
sudo mount /dev/### /media/usb
其中 ### 是卷标识符,/media/usb 是要将其装载到的目录。

将文件从记忆棒复制到目录:/home/odroid

cp /media/usb/experimental-platform-software-2016-02-09.tar.gz /home/odroid/
4.3解 压缩
tar zxvf experimental-platform-software-2016-02-09.tar.gz
5 个允许访问 PMC
为了使软件能够读取 PMC,需要插入一个可加载的内核模块,以允许用户访问它们。

导航到该目录并运行以下命令:/home/odroid/experimental-platform-software/datalogging_code

sudo insmod perf.ko
这会将我们的可加载内核模块(LKM)插入内核,允许我们的软件从用户空间读取和写入与PMC相关的寄存器。

注意:这需要在每次主板启动时完成。

6 个运行实验软件工具
实验软件有两个主要功能:

PMC 探索- 以单个频率和核心掩码运行工作负载(和记录数据),但在许多 PMC 事件之间切换以了解和比较所有这些事件。它由三个关键脚本组成,用于执行流程的每个阶段:
run_pmc_explore_experiment.py:在ODROID-XU3板上运行实验并记录数据
run_pmc_explore_processing.py:对实验数据进行后处理(可在传输实验数据后在 ODROID-XU3 或另一台计算机上运行)。它生成图形来检查实验的一致性。
run_pmc_explore_analysis.py:(专门用于构建电源模型。记录实验数据只需要前两个状态。分析 PMC 事件,输出图形,并选择要用于模型的 PMC 事件。这是电源建模软件的一部分,而不是实验平台软件。
模型构建- 通过多个频率和内核掩码的单一选择 PMC 运行工作负载(并记录数据)。它由三个关键脚本组成,用于执行流程的每个阶段:
run_model_building_experiment.py:在ODROID-XU3板上运行实验并记录数据
run_model_building_processing.py:对实验数据进行后处理(可在传输实验数据后在 ODROID-XU3 或另一台计算机上运行)。
run_pmc_explore_analysis.py:(专门用于构建电源模型。记录实验数据只需要前两个状态。使用选定的 PMC 构建电源模型。这是电源建模软件的一部分,而不是实验平台软件的一部分。
每个功能的第1阶段和第2阶段都是实验平台软件的一部分;它们可用于(在ODROID-XU3和ODROID-XU4上)进行许多目的的实验。两个实验功能的第3阶段实现了自动化模型构建方法,并且是Power Modelling软件的一部分;它可以将第二阶段的输出作为输入,也可以轻松地适应使用不同实验设置在其他平台上工作。

6.1PMC 探索实验
6.1.1运行实验
Odroid-XU3 开发板启动后,切换到该目录。/home/odroid/experimental-platform-software

请记住,请确保 LKM 自上次重新启动以来已插入,如前面的第5节 所述。perf.ko

需要先设置实验设置。由于要设置大量参数,因此在脚本本身中完成此操作。run_pmc_explore_experiment.py

在文本编辑器中打开脚本(例如 nano):run_model_building_experiment.py

nano run_pmc_explore_experiment.py
可以更改的主要参数位于"用户参数"注释下,如下所示:

---------------------

USER PARAMETERS START

---------------------

which_cluster = Cluster.A15
#which_cluster = Cluster.A7
#which_cluster = Cluster.BOTH

datalog_pmcs_A7 = [
[‘0x01’, ‘0x02’, ‘0x03’, ‘0x04’],
[‘0x05’, ‘0x06’, ‘0x07’, ‘0x08’],
[‘0x09’, ‘0x0A’, ‘0x0B’, ‘0x0C’],
[‘0x0D’, ‘0x0E’, ‘0x0F’, ‘0x10’],
[‘0x11’, ‘0x12’, ‘0x13’, ‘0x14’],
[‘0x15’, ‘0x16’, ‘0x17’, ‘0x18’],
[‘0x19’, ‘0x1D’, ‘0x60’, ‘0x61’],
[‘0x86’, ‘0x87’, ‘0xC0’, ‘0xC1’],
[‘0xC2’, ‘0xC3’, ‘0xC4’, ‘0xC5’],
[‘0xC9’, ‘0xCA’, ‘0x00’, ‘0x00’]]

datalog_pmcs_A15 = [
[‘0x01’, ‘0x02’, ‘0x03’, ‘0x04’, ‘0x05’, ‘0x08’],
[‘0x09’, ‘0x0A’, ‘0x0B’, ‘0x10’, ‘0x11’, ‘0x12’],
[‘0x13’, ‘0x14’, ‘0x15’, ‘0x16’, ‘0x17’, ‘0x18’],
[‘0x19’, ‘0x1A’, ‘0x1B’, ‘0x1C’, ‘0x1D’, ‘0x40’],
[‘0x41’, ‘0x42’, ‘0x43’, ‘0x46’, ‘0x47’, ‘0x48’],
[‘0x4C’, ‘0x4D’, ‘0x50’, ‘0x51’, ‘0x52’, ‘0x53’],
[‘0x56’, ‘0x57’, ‘0x58’, ‘0x60’, ‘0x61’, ‘0x62’],
[‘0x63’, ‘0x64’, ‘0x65’, ‘0x66’, ‘0x67’, ‘0x68’],
[‘0x69’, ‘0x6A’, ‘0x6C’, ‘0x6D’, ‘0x6E’, ‘0x70’],
[‘0x71’, ‘0x72’, ‘0x73’, ‘0x74’, ‘0x75’, ‘0x76’],
[‘0x78’, ‘0x79’, ‘0x7A’, ‘0x7C’, ‘0x7D’, ‘0x7E’]]

-------------------

USER PARAMETERS END

-------------------

大多数默认值已设置为适当的值。参数的快速说明如下:

which_cluster
可以采用三个值:,或 。如果选择此选项,则实验将确保重复执行工作负载以捕获 Cortex-A15 上的所有 PMC 事件(而不确保捕获所有 Cortex-A7 事件)。工作负载只能安排在任何 Corttex-A15 CPU 上运行。Cortex-A7 捕获为 Cortex-A7 指定的所有事件,而不考虑 Cortex-A15。工作负载只能在 Cortex-A7 内核上运行。 确保运行试验以捕获为 Cortex-A7 和 Cortex-A15 指定的所有 PMC,并且调度程序可以自由地使用任何内核来运行工作负载。Cluster.A15Cluster.A7Cluster.BOTHCluster.A15Cluster.BOTH
datalog_pmcs_A7
Specifies the PMCs to be collected for the Cortex-A7 cluster. The Cortex-A7 can only record four PMC events simultaneously (in addition to the Cycle Count [0x11], which is recorded separately). If is set to or , the experiment will repeat the running of the workloads specified in the file and switch PMCs each time. The inner list should always be four elements long. The outer list should always contain at least one inner list. which_clusterCluster.A7Cluster.BOTHworkloads-list.csv
datalog_pmcs_A15
Speciefies the PMCs to be collected for the Cortex-A15 cluster. The Cortex-A15 CPUs can record six PMC events (in addition to the Cycle Count) simultaneously. Therefore, the inner list must always be six elements in length. The PMC events are specified using string literals of their hexadecimal values.
Benchmarks/workloads need to be installed on the board and the file needs to be edited so the experiment software knows which ones to run and how to run them, see Workloadsworkloads-list.csv

.
Each workload will be run for 50 seconds and repeated for the number PMC event sets need to be run. All workloads are run with a CPU clock speed of 1000 MHz (for both the Cortex-A15 and Cortex-A7). The experiment time can be calculated by:

50
×
n
o
.
W
o
r
k
l
o
a
d
s
×
P
M
C
r
e
p
e
a
t
s
With the default settings (shown above), the estimated experiment time would be
5500
seconds (just over 1 hour 30 mins) if 10 workloads were specified in the file. workload-list.csv

Once the parameters have been set it is then just a case of running the experiment using the command below:

sudo python run_pmc_explore_experiment.py
(you will be prompted for the password which is ).odroid-813

To force the experiment to stop running, type and write to the to stop the datalogging process:Crtl+C1datalog-stopfile.txt

echo “1” > datalog-stopfile.txt
Note: once the experiment has finished running the terminal will occasionally stop behaving properly after running this program (e.g. typed characters not appearing, prompt not appearing on new line). To resolve this, type:

stty sane
After the experiment has finished running it will create a folder for that experiment. Make a note of the name of this folder. We will use as an example for the remainder of these instructions. The folder with the highest number will be the last experiment that was run. Power_Experiment_PMC_Explore_###

6.1.2Processing the Data
After the experiment has finished, the recorded data needs to be processed. The data processing combines data from the datalogging and workload execution to produce a breakdown for each workload.

sudo python run_pmc_explore_processing.py -d Power_Experiment_PMC_Explore_###
Where is the name of the experiment folderPower_Experiment_PMC_Explore_###

CSV files and plots showing a summary of the experiment (giving an idea of consistency between different runs) can be found in the experiment folder.

6.1.3Analysis (for power modelling)
See Section 7 and Section 8.1

6.2Model Building Experiments
The Model Building experimental software takes the selected set of PMCs from the PMC explore analysis and runs experiments to collect data to formulate the model itself. It is also useful for collected data for other purposes; it records a fixed set of PMCs while running workloads at any given list of frequencies and core masks.

6.2.1Running the Experiment
Once the ODROID-XU3 board has booted up, switch to the directory. /home/odroid/experimental-platform-software

Once the Odroid-XU3 board has booted up, switch to the directory. /home/odroid/experimental-platform-software

Remember to make sure that the LKM has been inserted since the last reboot, as previously described in Section 5. perf.ko

The experiment settings need to first be set. Due to large amount of parameters to be set, this is done in the script itself. run_model_building_experiment.py

Open the script in a text editor (e.g. nano):run_model_building_experiment.py

nano run_model_building_experiment.py
The main parameters that may be changed are located under the ‘USER PARAMETERS’ comment as shown below:

---------------------

USER PARAMETERS START

---------------------

fast_experiment = False #if true, only runs first workload except for 800 MHz (A7) and 1000 MHz (A15)

#core_masks = [‘4,5,6,7’, ‘4,5,6,7:4,5,6,7’, ‘4,5,6,7:4,5,6,7:4,5,6,7’, ‘4,5,6,7:4,5,6,7:4,5,6,7:4,5,6,7’] #List of core masks
core_masks = [‘4,5,6,7’]

maximum_workload_duration = 30 #Duration to run each workload in seconds
frequencies_MHz_A7 = [1000] #shorter list automatically extended to the same length as the other (A7 or A15)
frequencies_MHz_A15 = [200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800]
workload_list_filename = ‘workload-list.csv’
datalog_pmcs_A7 = [‘0x01’, ‘0x02’, ‘0x03’, ‘0x04’] # needs to have 4 items
datalog_pmcs_A15 = [‘0x01’, ‘0x02’, ‘0x03’, ‘0x04’, ‘0x05’, ‘0x06’] # needs to have 6 items

-------------------

USER PARAMETERS END

-------------------

Most of the defaults have been set to appropriate values. A quick description of the parameters is given below:

fast_experiment
Default is false. When set to true, only the first workload in the workload list file (e.g. ) is run at all of the specified frequencies. The full list of workloads is only run at on the Cortex-A7 on the Cortex-A15 (these two frequencies should be in the and list, respectively. By only run the workloads at one frequency and just one workload at all of the specified frequencies (i.e. to get an idea of static power at these operating points), the experiment time is greatly reduced. Our power model building software is able to build accurate power models with this data due to its model formulation that breaks down static and dynamic power. idle800 MHz1000 MHzfrequencies_MHz_A7frequencies_MHz_A15
core_maks
See Frequencies and Core Masks. The default value above means that the scheduler is free to allocate the workloads on any Cortex-A15 core (Cores 4-7).
maximum_workload_duration
Sets the exact time in seconds to run the workload for (not just the maximum). The workload is put into an infinite loop which is aborted exactly when the time has elapsed.
frequencies_MHz_A7
See Frequencies and Core Masks
frequencies_MHz_A15
See Frequencies and Core Masks.
workload_list_filename
Specifies the filename of the list of workloads to run. Workloads contains instruction on how to specify which workloads should be run.
datalog_pmcs_A7
Specifies the PMCs to be collected for the Cortex-A7 cluster. The Cortex-A7 can only record four PMC events simultaneously (in addition to the Cycle Count [0x11], which is recorded separately).It should therefore have exactly four elements. The PMC events are specified using string literals of their hexadecimal values.
datalog_pmcs_A15
Specifies the PMCs to be collected for the Cortex-A15 cluster. The Cortex-A15 CPUs can record six PMC events (in addition to the Cycle Count) simultaneously. Therefore, the list must always be six elements in length. The PMC events are specified using string literals of their hexadecimal values.
Benchmarks/workloads need to be installed on the board and the file needs to be edited so the experiment software knows which ones to run and how to run them, see Workloadsworkloads-list.csv

.
Once the parameters have been set it is then just a case of running the experiment using the command below:

sudo python run_model_building_experiment.py
(you will be prompted for the password which is ).odroid-813

This experiment will take about 20 minutes to run. To force the experiment to stop running, type and write to the :Crtl+C1datalog-stopfile.txt

echo “1” > datalog-stopfile.txt
注意:实验完成后,运行此程序后,终端偶尔会停止正常运行(例如,键入的字符未出现,提示未出现在新行上)。要解决此问题,请键入:

stty sane
实验运行完毕后,它将为该实验创建一个文件夹。记下此文件夹的名称。我们将以这些说明的其余部分为例。具有最高编号的文件夹将是上次运行的试验。Power_Experiment_Model_Building_###

实验完成后,需要对记录的数据进行处理。数据处理将来自数据记录和工作负载执行的数据结合起来,为每个工作负载生成细分。

sudo python run_model_building_processing.py -d Power_Experiment_Model_Building_###
实验文件夹的名称在哪里Power_Experiment_Model_Building_###

7安装模型构建(分析)软件
前面的几节介绍如何获取可用于多种目的的实验数据。本节介绍如何安装使用此数据生成运行时电源模型的软件。该软件可以安装在电路板本身或笔记本电脑/台式计算机上(前提是实验文件已从电路板上复制)。该软件实现了我们的通用模型构建方法,并且可以轻松调整以使用从不同平台收集的数据。这些说明假定软件将安装在 ODROID-XU3 板上并直接运行。

如果在 ODROID-XU3 板上工作,请导航到该目录。/home/odroid/

下载软件工具 (Power Model Analysis

功率模型分析-2016-02-09.tar.gz):

wget http://www.powmon.ecs.soton.ac.uk/downloads/analysis-software/power-model-analysis-2016-02-09.tar.gz
提取:

tar zxvf power-model-analysis-2016-02-09.tar.gz
8运行模型构建(分析)软件工具
8.1PMC 勘探分析(选择 PMC)
该软件使用实验平台PMC探索软件的输出(如第6.1节所述)来分析每个PMC事件,并选择要在功率模型中使用的最佳事件。

切换到该文件夹。power-model-analysis

运行 PMC 分析的命令是:

python run_pmc_explore_analysis.py -d …/Power_Experiment_PMC_Explore_### -c A15 -n 10 -i pmc_breakdown_gen.csv
-d是已处理实验数据的目录

-c指定群集(A15 或 A7)

-n是要选择的 PMC 的数量

-i是主输入文件的名称(如果使用我们的实验软件)。pmc_breakdown_gen.csv

这会放置一个名为 .它包含显示相关矩阵的文件和图形,分层聚类分析结果(带树状图)以及按顺序排列的所选PMC列表(.Analyse_and_Choose_PMCsComplete_Power_A15_df_event_selection.csv)

8.2模型构建
用于构建和验证功耗模型的软件与实验软件是分开的。它使用来自"模型构建"实验脚本的实验数据(而不是"PMC探索"脚本)。

切换到软件所在的目录。/home/odroid/power-model-analysis/

该脚本采用已处理的数据(确切地说是文件),并使用它来构建和验证功耗模型。run_model_building_analyse.pyexperiment_breakdown.csv

运行以下命令以生成并验证模型:

sudo python run_model_building_analyse.py -d …/experimental-platform-software/Power_Experiment_Model_Building_####/ -c A15 -n 7 -k 10
-d 参数指定实验目录。-c 参数指定要为其构建模型的分类(可以是 a 或 ,具体取决于运行实验的分类)。-n 参数指定要用于所选事件计数器(包括循环计数器)的事件计数器数。(例如,如果使用 Cortex-A15,则为 7,假设使用所有可用的计数器,则为 5)。作为实验,您可以减小此值,并查看模型使用较少 PMC 事件的准确程度。-k 参数应为 10(它告诉程序在 k=10 的情况下执行交叉验证)。A7A15

该脚本从模型和输入数据中获取结果参数并运行模型,计算每个模型系数对整体功率预测的贡献。它需要两个文件作为参数:run_model.py

Model_Building_Analyse_Experiment_Build/build_and_val_chosen_params.csv指定系数 (-p) 的文件
Model_Building_Analyse_Experiment_Build/build_and_val_data.csv提供已处理实验数据的文件 (-i)
sudo python run_model.py -p …/experimental-platform-software/Power_Experiment_Model_Building_###/Model_Building_Analyse_Experiment_Build/build_and_val_chosen_params.csv -i …/experimental-platform-software/Power_Experiment_Model_Building_###/Model_Building_Analyse_Experiment_Build/build_and_val_data.csv
跑:

sudo python model_building_results.py -d …/experimental-platform-software/Power_Experiment_Model_Building_###/
此脚本显示重要的统计信息,并生成一个文件夹,该文件夹可以拖放到网页中以查看结果。

您可以将文件夹从 ODROID 板复制到笔记本电脑,并使用我们基于 Web 的结果查看器更详细地查看结果。Model_Results_Summary

运行以下命令并查看驱动器的名称:

sudo fdisk -l
将记忆棒插入 ODROID 板。

再次使用上一个命令。记忆棒是显示的新项目。

使用以下命令安装记忆棒:

sudo mount /dev/sdbX /media/usb
记忆棒的内容现在可以在 上找到。/media/usb

复制Model_Results_Summary directory to the memory stick.

sudo cp -avr /home/odroid/experimental-platform-software/Power_Experiment_Model_Building_002/Model_Results_Summary /media/usb/
卸载记忆棒:

sudo unmount /media/usb/
取出记忆棒并将其插入笔记本电脑。

您可以使用我们基于 Web 的查看器查看模型的结果,方法是将此文件夹中的文件(而不是文件夹本身)拖放到此网页中。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值