Giter Site home page Giter Site logo

jkhumor / general-parallel-genetic-algorithm-on-gpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from winsleo/general-parallel-genetic-algorithm-on-gpu

0.0 0.0 0.0 2.68 MB

基于CUDA的GPU加速通用遗传算法实现,实验平台为Nvidia Jetson Nano

License: Apache License 2.0

C++ 73.20% Cuda 25.33% CMake 1.47%

general-parallel-genetic-algorithm-on-gpu's Introduction

基于CUDA的GPU加速通用遗传算法实现

介绍

基于CUDA的GPU加速通用遗传算法实现,实验平台为Nvidia Jetson Nano

文件构成

  • data 测试数据
  • src
    • error.cuh:CUDA API错误诊断使用的宏定义头文件,用于诊断CUDA API的返回错误,显示错误发生的具体文件和行数,便于调试。
    • GeneticAlgorithm.hpp:遗传算法通用类模板和函数模板的头文件,包含了所有实际应用场景的遗传算法的通用特性
    • GA1.cu :实例1 求使目标函数最优值的参数值
    • GA2.cu :实例2 学习感知机模型根据身高体重预测性别
  • puzzle_problem 解决拼图重构问题的GPU_ANT_ALGORITHM算法
    • cpp CUDA C++版本
    • python python版本

环境

  • 操作系统:Ubuntu18.04LTS
  • 软件工具:cuda-toolkits 10.2

使用说明

以实例1为例

编译

$ nvcc -o GA -g -G GA1.cu

运行

$ ./GA1

调试

$ cuda-gdb ./GA1
$ run

general-parallel-genetic-algorithm-on-gpu's People

Contributors

winsleo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.