gnu_radio_docker_benchmark_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
gnu_radio_docker_benchmark_example [2022/12/13 11:44] – [Submitting the task] lcardoso | gnu_radio_docker_benchmark_example [2023/08/29 16:36] – Rephase section on non interactive scenario cmorin | ||
---|---|---|---|
Line 8: | Line 8: | ||
## Create your docker image | ## Create your docker image | ||
- | Using docker, we will enable on your laptop an environment suitable for CorteXlab with gnuradio and needed software. Your goal is to develop this image (with new software and files) so you can run your experiment. It will only modify the environment of the image and not your laptop. Then you will be able to save and deploy the new image on cortexlab, without having to re-install everything and dealing with software compatibility and versioning. | + | Using docker, we will enable on your laptop an environment suitable for CorteXlab with gnuradio and needed software. Your goal is to develop this image (with new software and files) so you can run your experiment. It will only modify the environment of the image and not your laptop. Then you will be able to save and deploy the new image on CorteXlab, without having to re-install everything and dealing with software compatibility and versioning. |
Therefore, you can retrieve and run the following image. | Therefore, you can retrieve and run the following image. | ||
Line 102: | Line 102: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | The same reasoning applies for node 16. | ||
+ | This is the scenario at hand: | ||
- | We will use the ssh method for this example, but know that you can also use the '' | + | * **Node14** |
+ | * **Node16** will behave as the **OFDM transmitter** | ||
+ | |||
+ | For more info on where these nodes are located inside the platform, please check the node position map at the home of this wiki. | ||
+ | |||
+ | Assuming your account has been correctly created, you can now copy the folder with the scenario file into the Airlock SSH front-end: | ||
+ | |||
+ | < | ||
+ | you@yourpc: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ### Non interactive scenario (No SSH) | ||
+ | The example of this tutorial demonstrates an ssh connection to the nodes. But know that you can also use the '' | ||
+ | |||
+ | In this situation, you might want to directly call the program to run on the nodes via the '' | ||
< | < | ||
Line 111: | Line 128: | ||
container: | container: | ||
- image: [DOCKER USERNAME]/ | - image: [DOCKER USERNAME]/ | ||
- | command: | + | command: |
- | passive: true | + | passive: true |
node16: | node16: | ||
container: | container: | ||
- image: [DOCKER USERNAME]/ | - image: [DOCKER USERNAME]/ | ||
- | command: | + | command: |
</ | </ | ||
Line 128: | Line 145: | ||
* '' | * '' | ||
- | Same reasoning follows for the section on node6. So this is the scenario at hand: | ||
- | * **Node14** behaves as the **OFDM receiver** | + | Note that, **the rest of this tutorial uses the ssh method**, not the one mentioned in the current section. |
- | * **Node16** behaves as the **OFDM transmitter** | + | Also note that the command must point to the file to be executed, either with a relative path, from the '' |
- | + | ||
- | For more info on where these nodes are located inside the platform, please check the node position map at the home of this wiki. | + | |
- | + | ||
- | Assuming your account has been correctly created, you can now copy the folder with the scenario | + | |
- | + | ||
- | < | + | |
- | you@yourpc: | + | |
- | </ | + | |
## Access Airlock | ## Access Airlock | ||
Line 181: | Line 189: | ||
First we need to reserve the CorteXlab room: | First we need to reserve the CorteXlab room: | ||
- | < | + | I a new browser window open the [CorteXlab web app](http://xp.cortexlab.fr/ |
- | you@srvairlock:~/workspace$ oarsub -l nodes=BEST, | + | |
- | </code> | + | |
- | (If you're running your reservation | + | {{ :: |
- | < | + | |
- | you@srvairlock:~/ | + | Use the "Book the testbed" |
- | </ | + | |
+ | You'll get to a screen that looks like this: | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Now let's create the reservation! | ||
+ | |||
+ | Under "Book the testbed" | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | And using the clock icon select the start time of your reservation by dragging the clock pointers: | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Now, in the duration, select the end of your reservation the same way as above. | ||
+ | |||
+ | Finally select the nodes in the map of CorteXlab by clicking on the ones required for your experiment such that their color changes to orange. Since we're using 14 and 16, those are the ones to be selected: | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Finally click on the "Book the testbed" | ||
- | (Be sure that no one else is using the same node as you) | ||
- | This will run a 30 minute job and open a sub-shell in which you can run minus tasks. This sub-shell will be killed after 30 minutes, and if you leave the shell earlier, it will terminate the corresponding oar job. More documentation on oar can be found [[reserve|here]]. You can also monitor the current jobs in the [gantt web interface](http:// | ||
- | We then submit the minus task: | + | Back to the airlock terminal screen, we now can submit the minus task: |
< | < |
gnu_radio_docker_benchmark_example.txt · Last modified: 2024/03/08 15:59 by cmorin