国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

ECE 4122代做、代寫C++編程語言
ECE 4122代做、代寫C++編程語言

時(shí)間:2024-11-12  來源:合肥網(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.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp







 

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

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁版入口 破天一劍 目錄網(wǎng) 排行網(wǎng)

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    91免费国产视频| 亚洲综合国产精品| 国产精品久久在线观看| 亚洲巨乳在线观看| 欧美日韩亚洲在线| 久久亚洲精品欧美| 国产精品第2页| 日本午夜人人精品| 91免费国产网站| 亚洲自拍的二区三区| 国产内射老熟女aaaa | 精品国产一区二区三区久久狼5月| 亚洲一区尤物| 成人在线一区二区| 在线观看国产一区| www婷婷av久久久影片| 一本色道婷婷久久欧美| 粉嫩高清一区二区三区精品视频| 美女啪啪无遮挡免费久久网站| 国内外免费激情视频| 日韩综合中文字幕| 热久久这里只有| 国产成人精品在线观看| 欧美激情专区| 国产精品第一视频| 国产日韩专区在线| 精品国产免费久久久久久尖叫| 国产欧美日韩精品专区| 国产精品福利片| 精品一区日韩成人| 欧美激情精品久久久久久变态| 国产欧美久久久久久| 欧美精品videos性欧美| 成 年 人 黄 色 大 片大 全 | 欧美自拍视频在线| 国产精品入口尤物| 国产日韩在线精品av| 国产av第一区| 99www免费人成精品| 日韩av电影在线免费播放| 国产freexxxx性播放麻豆| 欧洲一区二区在线| 国产精品久久久久久久午夜 | 日产国产精品精品a∨| 久久久人人爽| 欧美这里只有精品| 精品久久久久久乱码天堂| 99热亚洲精品| 青草成人免费视频| 欧美猛少妇色xxxxx| 91免费人成网站在线观看18| 日本www高清视频| 国产精品日韩精品| 成人av免费电影| 日韩免费观看网站| 久久亚洲电影天堂| 91麻豆精品秘密入口| 日本a级片电影一区二区| 国产精品久久久久久久久电影网 | 在线视频91| 久久久一本精品99久久精品66| 青青草原av在线播放| 国产精品成人v| 114国产精品久久免费观看| 欧美乱大交xxxxx潮喷l头像 | 国产综合久久久久| 色综合影院在线观看| 国产精品视频1区| av免费观看国产| 欧美亚洲国产另类| 中文字幕一区二区三区乱码| 少妇久久久久久| 国产精品香蕉国产| 欧美一区视久久| 亚洲熟妇无码一区二区三区| 久久精品成人一区二区三区 | 97久久精品国产| 国模精品一区二区三区| 天堂一区二区三区| 国产精品电影久久久久电影网| 国产成人在线一区| 国产制服91一区二区三区制服| 天天综合中文字幕| 久久99久久99精品中文字幕| 日韩亚洲欧美成人| 7777精品久久久久久| 国产三级精品网站| 欧美日韩性生活片| 日本在线高清视频一区| 欧美激情视频一区二区三区不卡| 播播国产欧美激情| 久久综合狠狠综合久久综青草| 国产日韩亚洲欧美| 欧美日韩在线观看一区| 视频一区二区三区在线观看| 久久久久久成人| 国产精品免费看久久久香蕉| 久久久久久久一区二区三区| 国产精品av在线播放 | 欧美精品福利在线| 国产精品裸体一区二区三区| 九一免费在线观看| 久久久亚洲成人| 97人人模人人爽视频一区二区| 国产一区二区免费在线观看| 欧美一区在线直播| 日韩精品一区二区三区丰满| 春日野结衣av| 亚洲精品国产精品国自产观看| 欧美激情精品久久久| 国产精品久久久久久久久久久新郎| 久久99精品久久久久久水蜜桃| 91久久久久久国产精品| 国产精品一区二区久久久| 国产中文字幕在线免费观看| 国内精品**久久毛片app| 欧美精品一区二区三区三州| 欧美资源在线观看| 日韩免费精品视频| 日本精品一区二区三区在线| 日本一区二区三区四区高清视频| 成人做爰www免费看视频网站| 亚洲欧洲精品一区二区 | 视频一区二区综合| 欧美一级视频在线播放| 亚洲精品第一区二区三区| 亚洲精品一区二区三区av| 亚洲成熟丰满熟妇高潮xxxxx| 亚洲高清不卡一区| 色综合久久久久久久久五月| 水蜜桃亚洲精品| 日本在线成人一区二区| 日本成熟性欧美| 欧美一二三不卡| 欧美精品一区二区三区久久| 欧美成人一区二区在线| 国产在线拍偷自揄拍精品| 国产欧美日韩网站| 丰满人妻中伦妇伦精品app| 91精品在线观| 国产成人艳妇aa视频在线| 久久精品第九区免费观看| 久久久久久一区二区三区| 国产精品丝袜久久久久久消防器材| 国产精品久久精品| 一区二区三区四区免费观看| 婷婷精品国产一区二区三区日韩| 欧洲精品在线视频| 国产一区二区三区四区五区在线| 国产亚洲综合视频| 超碰97网站| 国产xxxx振车| 国产精品久久久久久久久影视| 最新欧美日韩亚洲| 天堂一区二区三区| 欧美亚洲精品一区二区| 国产欧美日韩在线播放| 久久久com| 国产精品日韩欧美一区二区三区| 欧美精品久久久久久久久久| 日韩中文字幕在线不卡| 男女猛烈激情xx00免费视频| 国产精品一区电影| 久久久久狠狠高潮亚洲精品| 久久九九亚洲综合| 欧美激情国产高清| 日本在线播放一区| 国产最新免费视频| 久久久亚洲影院| 欧美成人精品三级在线观看| 午夜精品久久久久久99热软件| 欧美精品一区二区三区免费播放| 福利视频一二区| 日韩中文娱乐网| 亚洲淫片在线视频| 精品欧美日韩| 国产精品99久久久久久人| 国产精品美女久久久久av福利| 亚洲欧美久久234| 男人天堂新网址| 99久久精品久久久久久ai换脸| 久久久国产在线视频| 亚洲一区免费网站| 国内自拍中文字幕| 91国产视频在线播放| 国产精品久久不能| 日本福利视频导航| 古典武侠综合av第一页| 国产精品爽黄69天堂a| 亚洲色婷婷久久精品av蜜桃| 麻豆av福利av久久av| 久久久久久久久久久久久久一区| 一区二区三区在线视频看| 欧美人与动牲交xxxxbbbb| 91国产精品91| 国产精品对白刺激久久久| 青青青国产在线视频| 久色视频在线播放| 欧美日韩电影在线观看| 欧美高清性xxxxhd|