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;">

                日韩欧美国产精品| 国产欧美一区二区精品秋霞影院| 91精品免费观看| 亚洲成人一二三| 成人一级片网址| 久久久亚洲精品一区二区三区 | 欧洲在线/亚洲| 亚洲成人黄色小说| 日韩一级大片在线| 国产高清无密码一区二区三区| 欧美国产亚洲另类动漫| 色婷婷久久99综合精品jk白丝| 日韩av中文字幕一区二区三区| 久久综合久色欧美综合狠狠| 成人黄色在线网站| 天堂在线一区二区| 国产精品视频yy9299一区| 欧美色图激情小说| 久久精品国产亚洲高清剧情介绍 | 国产91精品一区二区麻豆亚洲| 欧美国产综合色视频| 欧美日韩一级片在线观看| 国产一区二区三区日韩| 亚洲图片欧美综合| 中文字幕精品三区| 日韩一二在线观看| 在线亚洲免费视频| 国产精品亚洲а∨天堂免在线| 一区二区三区日韩精品| 国产午夜精品理论片a级大结局| 欧美视频在线观看一区二区| 国产伦精品一区二区三区视频青涩| 樱桃视频在线观看一区| 久久亚洲综合色| 欧美精品亚洲二区| 在线精品视频免费观看| 国产成人精品在线看| 久久激情综合网| 日韩在线播放一区二区| 亚洲精品成a人| 国产精品不卡一区二区三区| 久久综合九色综合久久久精品综合| 欧美日韩成人在线| 欧美亚洲一区三区| 日本电影欧美片| 99综合影院在线| 不卡在线观看av| 成人av资源站| 99久久综合狠狠综合久久| 成人免费高清视频| 99综合影院在线| 91理论电影在线观看| 91蜜桃网址入口| 99久免费精品视频在线观看| jlzzjlzz亚洲女人18| 成人aaaa免费全部观看| 成人99免费视频| 99久久婷婷国产综合精品| 丁香桃色午夜亚洲一区二区三区| 国产一区二区三区免费在线观看| 国产原创一区二区三区| 国产一区二三区好的| 国产精品亚洲а∨天堂免在线| 国产精品一卡二卡| 成人av免费在线观看| 国产久卡久卡久卡久卡视频精品| 精品一区二区三区免费观看| 精品一区二区三区的国产在线播放| 亚洲h精品动漫在线观看| 午夜久久久久久久久| 亚洲午夜影视影院在线观看| 一区二区三区久久| 在线成人高清不卡| 精品日韩欧美在线| 日韩欧美的一区二区| 欧美一区二区三区视频免费播放| 欧美偷拍一区二区| 欧美日高清视频| 欧美精品一二三四| 51精品国自产在线| 精品欧美一区二区久久| 精品第一国产综合精品aⅴ| 精品粉嫩超白一线天av| 久久久久久综合| 一区二区三区小说| 亚洲丰满少妇videoshd| 亚洲成人免费av| 蜜臀a∨国产成人精品| 美腿丝袜一区二区三区| 国产制服丝袜一区| 91一区二区三区在线观看| 91精品国产品国语在线不卡| 日韩欧美一区二区视频| 久久精品一区二区三区av| 国产精品美女久久久久久久网站| 亚洲欧美日韩在线| 丝袜美腿亚洲一区| 国产高清不卡一区二区| 久久99久久久欧美国产| 色琪琪一区二区三区亚洲区| 欧美性色综合网| 欧美一级在线视频| 亚洲国产精品高清| 亚洲成人先锋电影| 国产成人免费9x9x人网站视频| 91高清视频在线| 日本精品裸体写真集在线观看| 久久免费视频一区| 亚洲精品v日韩精品| 美日韩一区二区| hitomi一区二区三区精品| 欧美日本国产视频| 91麻豆精品国产91久久久久久 | 亚洲 欧美综合在线网络| 极品少妇一区二区三区精品视频 | 麻豆成人av在线| 国产精品一区二区三区网站| 在线观看视频91| 久久久精品黄色| 爽好久久久欧美精品| 色吧成人激情小说| 中国色在线观看另类| 久久精品99国产精品| 国产一区福利在线| 久久久久9999亚洲精品| 日韩国产欧美在线播放| 91丨九色丨蝌蚪丨老版| 久久精品视频在线看| 日韩国产欧美一区二区三区| 99久久精品一区二区| 日本一区免费视频| 蜜桃免费网站一区二区三区| 色综合网站在线| 久久久久久久久免费| 九九九精品视频| 欧美一区二区免费| 亚洲高清在线视频| 欧美日韩精品久久久| 麻豆国产精品777777在线| 欧美吻胸吃奶大尺度电影 | 成人av电影在线| 99国产精品久久久久久久久久| 久久久亚洲午夜电影| 久久99精品久久久久久| 日韩区在线观看| 免费成人在线网站| 91精品欧美久久久久久动漫| 亚洲丶国产丶欧美一区二区三区| 色偷偷成人一区二区三区91| 综合网在线视频| 日韩av中文在线观看| 久久久久国产精品麻豆| 精一区二区三区| 欧美一区二区高清| 黄页视频在线91| 国产亚洲欧美日韩俺去了| 国产精品一区二区三区乱码| 欧美人妇做爰xxxⅹ性高电影| 国产尤物一区二区| 国产精品网站在线播放| 国产另类ts人妖一区二区| 久久久蜜桃精品| 成人黄色电影在线| 亚洲美女屁股眼交| 国产精品一二三区在线| 亚洲一级二级三级在线免费观看| 51久久夜色精品国产麻豆| 九一久久久久久| 国产精品乱码一区二三区小蝌蚪| 色美美综合视频| 中文字幕一区av| 精品99久久久久久| 波多野洁衣一区| 日韩激情在线观看| 国产色爱av资源综合区| 欧美在线视频不卡| 久久久久久久久久久99999| 欧美日韩国产一区二区三区地区| 久久精品免费观看| 一区二区三区av电影| 日韩精品专区在线影院重磅| av中文字幕不卡| 亚洲欧洲国产专区| 久久欧美一区二区| 欧美日韩一区二区三区四区五区 | 亚洲专区一二三| 日韩视频一区二区| 91一区二区在线| 欧美韩国日本综合| 国产亚洲成年网址在线观看| 欧美性生活大片视频| 国产精品 欧美精品| 午夜a成v人精品| 国产精品久久三区| 在线精品视频免费观看| 91猫先生在线| 国产成人午夜视频| 美女精品一区二区| 亚洲电影欧美电影有声小说| 中文字幕中文字幕一区|