Update CMakeFiles, add initial pair potential implementation and tests

This commit is contained in:
Alex Selimov 2025-04-16 23:06:50 -04:00
parent 6162b27a89
commit f15eb0cf51
9 changed files with 67 additions and 55 deletions

View file

@ -1,10 +1,10 @@
#include "hello_world.h"
#include "particle.hpp"
#include "vec3.h"
#include <iostream>
int main() {
std::cout << "Starting CUDA example..." << std::endl; // Using endl to flush
check_cuda();
launch_hello_cuda();
std::cout << "Ending CUDA example" << std::endl; // Using endl to flush
Particle<float> test = {
{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, 10};
std::cout << test.pos.x << " " << test.pos.y << " " << test.pos.z;
return 0;
}