Thread Count | Average | # of Trials |
---|---|---|
Sync | 16.16 | 10 |
1 | 33.59 | 10 |
2 | 35.52 | 10 |
3 | 57.46 | 10 |
4 | 108.61 | 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sf::Vector2f ball_current_speed(0,0); //ball starts with no movement, OK | |
// Lets say the game begun, we launch the ball in a random direction | |
// e.g. one program execution would make: ball_current_speed = (9,4) | |
// if you remember good' ol math, you can use the pythangorean theorem to find | |
// it's actual speed, which in this case is sqrt(9^2 + 4^2) | |
ball_current_speed += sf::Vector2f(rand()%10,rand()%10); | |
//stuff happends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//controls.hpp | |
#ifndef CONTROLS_HPP | |
#define CONTROLS_HPP | |
#include <SFML/Graphics.hpp> | |
#include <SFML/System.hpp> | |
#include <SFML/Window.hpp> | |
void computeMatricesFromInputs(sf::Window& window, float time); | |
void handleKeyboard(float time); | |
glm::mat4 getViewMatrix(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------ | |
2>------ Build started: Project: hpx, Configuration: Release x64 ------ | |
2> hpx.vcxproj -> C:\Users\Gmercer\Documents\HPX_build\Release\lib\hpx\hpx.dll | |
3>------ Build started: Project: transform_test_exe, Configuration: Release x64 ------ | |
3> transform.cpp | |
3>c:\users\gmercer\documents\github\hpx\hpx\stl\detail\transform.hpp(58): error C2248: 'hpx::lcos::future<R>::future' : cannot access private member declared in class 'hpx::lcos::future<R>' | |
3> with | |
3> [ | |
3> R=hpx::parallel::detail::zip_iterator<iterator_tuple> | |
3> ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; -- Cells build script for windows.iss -- | |
[Setup] | |
AppName=Cells | |
AppVersion=0.5.0 | |
DefaultDirName={pf}\Cells | |
DefaultGroupName=Cells | |
UninstallDisplayIcon={app}\Cells.exe | |
Compression=lzma2 | |
SolidCompression=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM LOGIC | |
DEFINE RENDERWINDOW | |
CREATE PLAYER | |
CREATE MANAGER | |
CREATE OBSTACLES | |
CREATE BALL | |
LOAD TEXTURES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\Grant\Documents\HPX_BUILD\Release\bin>foreach_scaling.exe --vector_size | |
=1000000 --mTime=2 | |
------------------Average------------------ | |
Average parallel execution time : 266.754 | |
Average sequential execution time: 515.349 | |
Average standard execution time: 508.632 | |
----------------Execution Time Difference--------------- | |
Parallel <-> Sequential: -248.595 | |
Parallel <-> Standard: -241.878 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CMake version | |
cmake_minimum_required(VERSION 2.8) | |
project(ParticleSimulator) | |
#enable Release ALWAYS, configure vars | |
#if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |
# message( STATUS "Setting build type to 'Release as none was specified.") | |
# set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE) | |
# #set possible values of built type for cmake-gui | |
# set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release" "Debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <hpx/hpx_init.hpp> | |
#include <hpx/hpx.hpp> | |
#include <hpx/include/algorithm.hpp> | |
//... | |
std::vector<int> c(10007); | |
//fill the vector with random values | |
std::iota(boost::begin(c), boost::end(c), std::rand()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2014 Hartmut Kaiser | |
// | |
// Distributed under the Boost Software License, Version 1.0. (See accompanying | |
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
#include <hpx/hpx_init.hpp> | |
#include <hpx/hpx.hpp> | |
#include <hpx/include/numeric.hpp> | |
#include <hpx/parallel/algorithm.hpp> | |
#include <hpx/util/lightweight_test.hpp> |
OlderNewer