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

                亚洲一区二区精品3399| 1000精品久久久久久久久| 国内国产精品久久| 一区二区高清在线| 亚洲视频狠狠干| 国产免费成人在线视频| 精品国产一区二区三区忘忧草| 欧美日韩国产高清一区二区| 91麻豆swag| 国产成人精品免费网站| 国产一区在线观看视频| 麻豆91在线播放| 美国av一区二区| 久久www免费人成看片高清| 日韩视频一区二区在线观看| 国模一区二区三区白浆| 亚洲高清视频在线| 国产人伦精品一区二区| 91蜜桃免费观看视频| 91免费版在线| 亚洲国产视频一区| 久久婷婷久久一区二区三区| 91日韩在线专区| 国产在线不卡一区| 一本久久精品一区二区| 日本特黄久久久高潮| 亚洲国产精品一区二区久久恐怖片 | 91精品国产91综合久久蜜臀| 成人一区二区三区视频| 狠狠色2019综合网| 亚洲视频香蕉人妖| 国产高清精品久久久久| 麻豆91精品91久久久的内涵| 日韩高清国产一区在线| 国产亚洲欧美在线| 国产精品一区二区三区四区| 国产精一区二区三区| 9191成人精品久久| 蜜臀av国产精品久久久久| 色婷婷av一区二区三区之一色屋| 亚洲欧美日本在线| 亚洲欧美日韩在线| 亚洲成人动漫在线观看| 麻豆成人免费电影| 风间由美性色一区二区三区| 欧美日韩视频在线一区二区| 精品日韩在线观看| 国产精品人人做人人爽人人添| 亚洲无线码一区二区三区| 久久99精品久久久久久久久久久久| 国产精品456露脸| 欧美色国产精品| 国产亚洲一区二区三区| 午夜精品久久久久久| 处破女av一区二区| 欧美丰满嫩嫩电影| 国产精品久久久久久久久快鸭| 日本欧美一区二区| 色噜噜狠狠色综合中国| 国产色产综合产在线视频| 亚洲观看高清完整版在线观看| 国产精品一二三区| 欧美一区二区人人喊爽| 一区二区三区丝袜| 成人午夜av电影| 日韩精品中文字幕一区二区三区| 亚洲激情在线播放| 国产在线精品一区在线观看麻豆| 欧美日韩专区在线| 亚洲欧美日韩在线不卡| av男人天堂一区| 久久久亚洲精品石原莉奈| 精品综合免费视频观看| 日韩午夜激情电影| 欧美系列亚洲系列| 亚洲精品久久久蜜桃| 成人精品视频一区二区三区| 欧美电影免费观看完整版| 日韩va亚洲va欧美va久久| 欧美日韩国产一级二级| 一区二区三区欧美亚洲| 91美女在线看| 中文字幕免费不卡| 国产成人h网站| 久久久亚洲午夜电影| 国产一区三区三区| 亚洲精品一区二区三区蜜桃下载| 蜜臂av日日欢夜夜爽一区| 91精品一区二区三区在线观看| 首页国产欧美久久| 欧美老女人第四色| 亚洲成av人影院| 欧美精品一二三| 日韩制服丝袜先锋影音| 91精品国产aⅴ一区二区| 日韩av电影免费观看高清完整版 | 韩国成人在线视频| 精品国产凹凸成av人导航| 国产一区二区三区免费| 中文字幕免费观看一区| www.在线欧美| 亚洲理论在线观看| 欧美伊人久久久久久久久影院| 亚洲va欧美va国产va天堂影院| 欧美日韩国产精品自在自线| 视频一区欧美日韩| 精品精品国产高清a毛片牛牛| 狠狠色狠狠色综合| 亚洲图片激情小说| 欧美放荡的少妇| 狠狠色2019综合网| 亚洲蜜臀av乱码久久精品| 欧美另类变人与禽xxxxx| 久久99国产乱子伦精品免费| 中文字幕中文字幕中文字幕亚洲无线| 色综合色狠狠天天综合色| 亚洲曰韩产成在线| 精品国产凹凸成av人导航| gogogo免费视频观看亚洲一| 日韩中文字幕区一区有砖一区| 精品av综合导航| 91国产成人在线| 激情久久五月天| 亚洲美女视频一区| 久久综合色综合88| 欧美午夜精品一区| 国产美女在线精品| 亚洲图片自拍偷拍| 国产午夜三级一区二区三| 在线亚洲免费视频| 国产精品综合在线视频| 一区二区三区四区乱视频| 欧美大片在线观看一区二区| av一区二区不卡| 精品一区二区久久| 亚洲一区二区三区三| 精品久久久久久综合日本欧美| av男人天堂一区| 国产一区二区三区四区五区入口| 亚洲午夜三级在线| 日本一区二区高清| 日韩一级黄色片| 欧美亚洲国产一区在线观看网站| 国产成人精品1024| 精品制服美女丁香| 日韩av网站免费在线| 亚洲午夜精品网| 亚洲欧美激情在线| 国产精品乱人伦| 26uuu精品一区二区三区四区在线| 色吊一区二区三区| 99视频在线精品| 国产成人99久久亚洲综合精品| 免费成人你懂的| 婷婷成人激情在线网| 久久精品夜色噜噜亚洲aⅴ| 成人av电影观看| 国内精品写真在线观看| 青草国产精品久久久久久| 亚洲色图第一区| 亚洲色图.com| 亚洲视频每日更新| 日韩毛片视频在线看| 久久久国产精华| 欧美精品一区二区三区四区 | 精品欧美乱码久久久久久1区2区| 欧美亚洲高清一区二区三区不卡| 91麻豆免费看| 99久久久国产精品免费蜜臀| 97久久超碰国产精品| 不卡一区中文字幕| 9久草视频在线视频精品| va亚洲va日韩不卡在线观看| 99久久99久久免费精品蜜臀| 成人av网址在线| 色综合一区二区| 欧美视频一区二区在线观看| 欧美喷潮久久久xxxxx| 9191精品国产综合久久久久久| 欧美肥大bbwbbw高潮| 欧美成人一区二区三区在线观看| 亚洲精品一区二区三区影院| 国产天堂亚洲国产碰碰| 国产精品美日韩| 一区二区三区中文字幕| 亚洲成av人影院| 国产揄拍国内精品对白| 91小视频免费看| 欧美日本高清视频在线观看| 精品国产乱码久久久久久夜甘婷婷 | 午夜久久福利影院| 免费一区二区视频| 国产伦精品一区二区三区在线观看| 国产精品99久久久久久似苏梦涵| 国产不卡一区视频| 91豆麻精品91久久久久久| 精品国产伦理网| 亚洲黄色av一区| 精品无人区卡一卡二卡三乱码免费卡| 风流少妇一区二区|