If not already installed, install Nvidia Driver,
https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html
and CUDA toolkit
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
check installation with:
import glob | |
import json | |
import os | |
import multiprocessing | |
from functools import partial | |
import random | |
import re | |
DATA_CACHE_DIR = "data" | |
BOYS_NAMES = ["Aaron","Abel","Abigail","Acorn","Adam","Aidan","Aiden","Al","Alan","Albert","Alby","Alex","Alexander","Alfie","Alfred","Ali","Allen","Amos","Andre","Andrew","Andy","Anthony","Antonio","Archie","Arthur","Avi","Bae","Bailey","Barry","Bart","Baxter","Ben","Benjamin","Benji","Bennie","Benny","Bert","Bill","Billy","Blake","Blaze","Bo","Bob","Bobbie","Bobby","Bobo","Boris","Boy","Brad","Braden","Brady","Brayden","Brent","Brett","Brian","Brix","Brody","Bruce","Bruno","Bryan","Bryce","Bubba","Bud","Budd","Bumpkin","Burt","Buster","Buzzy","Cai","Caleb","Calvin","Cape","Captain","Carl","Carlos","Carter","Cat","Chad","Charles","Charlie","Chen","Chet","Chip","Chris","Christopher","Chuck","Clifford","Clive","Clyde","Cody","Cole","Colin","Connor","Conor","Cooper","Corey","Craig","Dale","Damien","Dan","Daniel","Danny","Dare","Darren","Darryl","Dave","Davey","David","Davy","De |
"" | |
" " | |
"," | |
"/" | |
":" | |
";" | |
"c" | |
"C" | |
"Q" | |
"W" |
#include <CGAL/Handle_for.h> | |
#include <CGAL/Timer.h> | |
#include <CGAL/Unique_hash_map.h> | |
#include <boost/any.hpp> | |
#include <iostream> | |
#include <list> | |
#include <stack> | |
namespace CGAL { |
If not already installed, install Nvidia Driver,
https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html
and CUDA toolkit
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
check installation with:
#define CGAL_NO_ASSERTIONS 1 | |
#include <CGAL/Exact_predicates_exact_constructions_kernel.h> | |
#include <CGAL/Kernel/global_functions.h> | |
#include <CGAL/point_generators_3.h> | |
#include <CGAL/Timer.h> | |
#include <CGAL/Nef_polyhedron_3.h> | |
#include <random> | |
#include <algorithm> | |
using K = CGAL::Exact_predicates_exact_constructions_kernel; |
#include <CGAL/Exact_predicates_exact_constructions_kernel.h> | |
#include <CGAL/Kernel/global_functions.h> | |
#include <CGAL/Nef_S2/Sphere_circle.h> | |
#include <CGAL/point_generators_3.h> | |
#include <benchmark/benchmark.h> | |
using K = CGAL::Exact_predicates_exact_constructions_kernel; | |
using Point = CGAL::Point_3<K>; | |
using Plane = CGAL::Plane_3<K>; | |
using Sphere_circle = CGAL::Sphere_circle<K>; |
// Copyright (c) 1997-2000 | |
// Utrecht University (The Netherlands), | |
// ETH Zurich (Switzerland), | |
// INRIA Sophia-Antipolis (France), | |
// Max-Planck-Institute Saarbruecken (Germany), | |
// and Tel-Aviv University (Israel). All rights reserved. | |
// | |
// This file is part of CGAL (www.cgal.org) | |
// | |
// $URL$ |
#include <benchmark/benchmark.h> | |
#include <CGAL/Nef_3/ID_support_handler.h> | |
#include <CGAL/Nef_3/SNC_indexed_items.h> | |
// A bit unconventional ;) | |
static int data[][2] | |
#include "sample.data" | |
; | |
namespace CGAL { |
#include <iostream> | |
static int allocations = 0; | |
static int totalBytes = 0; | |
//Logging allocator | |
template<class T> | |
struct Allogator { | |
typedef T value_type; | |
T* allocate(size_t n, const void* = nullptr) |
G92 E0 ; zero extruder | |
G1 E-3.0 F1500 ; retract | |
G4 ; wait | |
M104 S0 ; turn off temperature | |
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up | |
M106 S255 ; turn fan on | |
G1 X125 Y0 F3000.0 ; goto middle | |
M190 R0 T40 ; turn off bed and wait for cooldown | |
M107 ; turn off fan | |
G1 X0 Y200 F3000 ; home X axis |