Test command
$ testspeed ~/projects/Hobot/hobot/environments/mj_models/go1/scene.xml 100000 20
Where 20
means using 20 (asynchronous) threads.
/* Copyright 2015-2021 Jack Humbert | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz | |
# | |
# Python 3.9 on NixOS - Time elapsed = 14.530219 seconds | |
# Python 3.10 on NixOS - Time elapsed = 10.266909 seconds | |
# Python 3.11 on NixOS - Time elapsed = 5.466192 seconds | |
import random | |
import time | |
import torch | |
import time | |
num_envs = 40 | |
buffer_length = 1_000_000 | |
buffer = torch.zeros([num_envs, buffer_length]).cpu() | |
B = 5120 | |
T = 100 |
# Check https://github.com/airalab/airapkgs/blob/nixos-unstable/pkgs/development/ros-modules/catkin/default.nix | |
{ lib, pkgs, stdenv, fetchFromGitHub, callPackage, | |
python2Packages, ... }: | |
let | |
pname = "catkin"; | |
version = "0.7.18"; | |
subversion = "1"; | |
rosdistro = "kinetic"; |
I hereby claim:
To claim this, I am signing this object:
{ config, lib, pkgs, ... }: | |
{ | |
networking.firewall.allowedTCPPorts = [ 80 443 8885 ]; | |
services.nginx = { | |
enable = true; | |
recommendedProxySettings = true; | |
statusPage = true; |