99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

ECE 4122代做、代寫(xiě)C++編程語(yǔ)言
ECE 4122代做、代寫(xiě)C++編程語(yǔ)言

時(shí)間:2024-11-12  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



ECE 4122/6122 Lab 4: CUDA-based John Conway’s Game of Life
(100 pts)
Category: CUDA
Due: Tuesday November 8th
, 2024 by 11:59 PM
Objective:
Implement a C++ CUDA program to run the Game of Life.
Game Description:
The Game of Life (an example of a cellular automaton) is played on an infinite two-dimensional 
rectangular grid of cells. Each cell can be either alive or dead. The status of each cell changes 
each turn of the game (also called a generation) depending on the statuses of that cell's 8 
neighbors. Neighbors of a cell are cells that touch that cell, either horizontal, vertical, or diagonal 
from that cell.
The initial pattern is the first generation. The second generation evolves from applying the rules 
simultaneously to every cell on the game board, i.e. births and deaths happen simultaneously. 
Afterwards, the rules are iteratively applied to create future generations. For each generation 
of the game, a cell's status in the next generation is determined by a set of rules. These simple 
rules are as follows:
• If the cell is alive, then it stays alive if it has either 2 or 3 live neighbors
• If the cell is dead, then it springs to life only in the case that it has 3 live neighbors
There are, of course, as many variations to these rules as there are different combinations of 
numbers to use for determining when cells live or die. Conway tried many of these different 
variants before settling on these specific rules. Some of these variations cause the populations 
to quickly die out, and others expand without limit to fill up the entire universe, or some large 
portion thereof.
Assignment:
1) Write a C++ application that takes up to 5 command line arguments to dynamically change the 
number of processing threads ( >= 2), cell size, the image size and the type of memory allocation. 
Below is an example
 ./Lab2 -c 5 -x 800 -y 600 -t NORMAL
The flags
-n is the number of threads per block (must be a multiple of **), 
-c is used to denote the “cell size” with cells being square (c >=1), 
-x is the window width, 
-y is the window height
-t is either NORMAL, PINNED, or MANAGED. This is the type of memory to use either normal, 
pinned, or managed.
The grid size used for calculations and display is the (window size)/(cell size).
If one of the flags above is missing then automatically use the defaults:
-n defaults to **
-c defaults to 5
-x and -y default to 800 by 600 respectively.
-t defaults to NORMAL
2) Write your code using three functions: one for the normal memory allocation, one for pinned 
memory allocation, and one for managed memory allocation. 
3) Your code needs to use a random number generator to initially set the individual grid element to 
either “alive” or “dead”. 
4) Your code then runs continuously generating new results until either the window is closed or the 
“Esc” key is pressed. 
5) While your code is running you need to display to a graphics window the current state of the Life 
game. Cells that are alive are white and dead cells are black. You don’t need to draw the dead 
cells.
6) While your code is running you need to constantly output to the console window the processing 
time in microseconds of the last 100 generations of the game and the type of memory allocation. 
Do not include the time it takes to display the results.
For example:
100 generations took ??? microsecs with ** threads per block using Normal memory allocation.
100 generations took ??? microsecs with 64 threads per block using Pinned memory allocation.
100 generations took ??? microsecs with 1024 threads per block using Managed memory allocation.
Turn-In Instructions
Zip up your file(s) into Lab4.zip and upload this zip file on the assignment section of Canvas. 
Grading Rubric:
If a student’s program runs correctly and produces the desired output, the student has the potential to get a 100 
on his or her homework; however, TA’s will look through your code for other elements needed to meet the lab 
requirements. The table below shows typical deductions that could occur. 
AUTOMATIC GRADING POINT DEDUCTIONS PER PROBLEM: 
Element Percentage 
Deduction 
Details 
Does Not Compile 40% Code does not compile on PACE-ICE!
Does Not Match Output Up to **% The code compiles but does not produce correct outputs.
Runtime and efficiency of 
code setup
Up to 10% 
extra credit
Top quartile 10 pts, Second quartile 5 pts, Third quartile 2 pts.
Clear Self-Documenting 
Coding Styles 
Up to 25% This can include incorrect indentation, using unclear variable names, 
unclear/missing comments, or compiling with warnings. (See 
Appendix A) 
LATE POLICY 
Element Percentage Deduction Details 
Late Deduction Function score – 0.5 * H H = number of hours (ceiling function) passed 
deadline 
Appendix A: Coding Standards
Indentation:
When using if/for/while statements, make sure you indent 4 spaces for the content inside those. Also make 
sure that you use spaces to make the code more readable.
For example:
for (int i; i < 10; i++) 
{
 j = j + i; 
}
If you have nested statements, you should use multiple indentions. Each { should be on its own line (like the 
for loop) If you have else or else if statements after your if statement, they should be on their own line. 
for (int i; i < 10; i++) 

 if (i < 5)
 {
 counter++; 
 k -= i; 
 } 
 else
 { 
 k +=1;
 } 
 j += i;
}
Camel Case:
This naming convention has the first letter of the variable be lower case, and the first letter in each new word 
be capitalized (e.g. firstSecondThird). 
This applies for functions and member functions as well! 
The main exception to this is class names, where the first letter should also be capitalized. 
Variable and Function Names:
Your variable and function names should be clear about what that variable or function represents. Do not use 
one letter variables, but use abbreviations when it is appropriate (for example: “imag" instead of 
“imaginary”). The more descriptive your variable and function names are, the more readable your code will 
be. This is the idea behind self-documenting code. 
File Headers:
Every file should have the following header at the top
/*
Author: your name
Class: ECE4122 or ECE6122 (section)
Last Date Modified: date
Description:
What is the purpose of this file?
*/
Code Comments:
1. Every function must have a comment section describing the purpose of the function, the input and 
output parameters, the return value (if any).
2. Every class must have a comment section to describe the purpose of the class.
3. Comments need to be placed inside of functions/loops to assist in the understanding of the flow of 
the code.

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp







 

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:CSC1003 代做、JAVA 語(yǔ)言編程代寫(xiě)
  • 下一篇:代寫(xiě)COMP0034、代做Java/Python程序設(shè)計(jì)
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                26uuu国产在线精品一区二区| 中文一区二区在线观看| 久久精品一区二区三区四区| 国产91丝袜在线播放| 国产精品麻豆99久久久久久| 国产成都精品91一区二区三| 亚洲精品高清在线观看| 91麻豆精品久久久久蜜臀| 国产精品1区2区| 亚洲综合色网站| 久久久久久久网| 欧美性色黄大片手机版| 国产91综合网| 国产传媒久久文化传媒| 7777精品伊人久久久大香线蕉 | 国产成人精品在线看| 亚洲一区在线观看网站| 国产mv日韩mv欧美| 欧美国产日韩亚洲一区| 国产不卡免费视频| 精品国产三级a在线观看| 久久国产三级精品| 蜜桃视频一区二区三区| 99国产欧美另类久久久精品| 日韩一区二区精品在线观看| 1000精品久久久久久久久| 91.麻豆视频| 91美女视频网站| 亚洲欧美福利一区二区| 精品国产乱码久久久久久老虎| 国产精品美女久久福利网站| 免费的成人av| 欧美一级一区二区| 日本最新不卡在线| 91在线观看下载| 久久久久久97三级| 国产电影一区在线| 精品国产乱码久久久久久老虎| 亚洲国产日韩a在线播放| 精品国产一区二区三区不卡| 94-欧美-setu| 亚洲欧美日韩国产综合在线| 欧美色图天堂网| 国产伦精品一区二区三区免费| 精品sm捆绑视频| 欧美r级电影在线观看| 欧美顶级少妇做爰| 国产suv一区二区三区88区| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美一级一级性生活免费录像| 国产成人一级电影| 国产精品国产三级国产aⅴ入口| av电影一区二区| 亚洲成人午夜影院| 国产无遮挡一区二区三区毛片日本| 色综合久久久网| 狠狠网亚洲精品| 一区二区三区**美女毛片| 精品国产成人在线影院| 国产精品一区二区在线观看不卡| 亚洲免费毛片网站| 亚洲视频一区二区在线| 中文字幕一区在线观看视频| 国产女主播视频一区二区| 中文字幕在线不卡一区 | 精品理论电影在线| 成人aa视频在线观看| 国产一区二区三区国产| 国产一区二区成人久久免费影院 | 亚洲一二三专区| 中文字幕中文字幕一区二区| 久久久国产精品麻豆| 国产清纯美女被跳蛋高潮一区二区久久w| 欧美一区二区三区视频| 日韩欧美亚洲一区二区| 国产丝袜在线精品| 亚洲啪啪综合av一区二区三区| 欧美精品一区二区三区在线| 亚洲无线码一区二区三区| 一区二区三区在线影院| 韩日欧美一区二区三区| 韩国精品在线观看| 国内精品伊人久久久久影院对白| 欧美三级午夜理伦三级中视频| 国内精品国产成人国产三级粉色| 日韩vs国产vs欧美| 亚洲视频一区在线| 日韩免费观看高清完整版| 欧美日韩第一区日日骚| 色婷婷精品久久二区二区蜜臂av | 亚洲h精品动漫在线观看| 中文字幕不卡在线播放| 亚洲网友自拍偷拍| 精品国产91乱码一区二区三区 | 精品欧美一区二区久久| 91在线精品一区二区| 久久99在线观看| 亚洲国产成人av| 国产精品日产欧美久久久久| 9191成人精品久久| 色欧美乱欧美15图片| 国产成人精品www牛牛影视| 亚洲3atv精品一区二区三区| 中文字幕不卡在线播放| 91精品国产全国免费观看| caoporm超碰国产精品| 精品在线视频一区| 午夜精品一区二区三区三上悠亚| 中文字幕av一区二区三区免费看 | 久久精品999| 亚洲精品菠萝久久久久久久| 91麻豆精品国产自产在线观看一区| 成人h精品动漫一区二区三区| 欧美aⅴ一区二区三区视频| 亚洲精品成人精品456| 亚洲国产精品黑人久久久| 2021中文字幕一区亚洲| 精品日韩一区二区三区免费视频| 91精品在线一区二区| 欧美日韩在线观看一区二区| 色婷婷综合激情| 成人免费毛片嘿嘿连载视频| 极品少妇xxxx偷拍精品少妇| 男人操女人的视频在线观看欧美| 亚洲一区二区三区爽爽爽爽爽| 中文字幕一区二区三区乱码在线| 久久久久青草大香线综合精品| 欧美xxxxx裸体时装秀| 91精品一区二区三区久久久久久 | 国产在线精品免费av| 成人精品鲁一区一区二区| 日本精品一区二区三区四区的功能| 欧美午夜精品久久久久久孕妇| 2014亚洲片线观看视频免费| 亚洲黄色av一区| 精品一区二区三区欧美| 波多野结衣91| 6080午夜不卡| 中文字幕在线一区二区三区| 天堂在线一区二区| 成人精品视频一区二区三区| 欧美久久久久久久久久| 成人欧美一区二区三区白人| 免费欧美在线视频| 色综合天天狠狠| 久久久91精品国产一区二区精品| 亚洲国产精品影院| 中文字幕视频一区二区三区久| 精品国产免费人成在线观看| 国产女人aaa级久久久级 | 欧美视频一区二区三区在线观看 | 久久成人免费电影| 国产二区国产一区在线观看| 91亚洲午夜精品久久久久久| 91极品视觉盛宴| 日韩欧美专区在线| 日本一区二区久久| 亚洲午夜在线观看视频在线| 免费成人小视频| 国产成人精品影视| 色综合天天性综合| 制服.丝袜.亚洲.另类.中文| 日本一区二区三区电影| 亚洲嫩草精品久久| 久久精品99国产国产精| 色综合久久久网| 欧美大片在线观看一区二区| 亚洲欧美视频在线观看视频| 免费看欧美美女黄的网站| 91色乱码一区二区三区| 欧美xxx久久| 一区二区国产盗摄色噜噜| 久久精品国产亚洲5555| 99精品久久99久久久久| 日韩一级视频免费观看在线| 国产精品久线观看视频| 日韩成人免费在线| 97久久精品人人澡人人爽| 日韩一区二区在线看| 亚洲图片激情小说| 国产一区二区三区四区在线观看| 欧美视频一区二区三区四区| 国产精品久久99| 久久精品国产色蜜蜜麻豆| 欧美色综合影院| 中文字幕视频一区二区三区久| 激情六月婷婷综合| 欧美理论电影在线| 亚洲精品一二三| 国产精品1区二区.| 精品美女在线播放| 日韩激情视频在线观看| 欧美亚洲愉拍一区二区| 国产精品久久久久久久久免费丝袜| 九一久久久久久| 7777精品伊人久久久大香线蕉完整版 | 国产 欧美在线| 日韩美一区二区三区| 亚洲午夜私人影院| 在线一区二区视频|