加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

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

時間:2024-11-12  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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







 

掃一掃在手機打開當前頁
  • 上一篇:CSC1003 代做、JAVA 語言編程代寫
  • 下一篇:代寫COMP0034、代做Java/Python程序設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    一道本一区二区| 免费观看在线综合| 国产精品三级| 亚洲不卡系列| 亚洲综合电影一区二区三区| 红杏aⅴ成人免费视频| 麻豆精品视频在线观看免费| 免费观看久久久4p| 国产视频一区三区| 青青国产91久久久久久 | 欧美日韩尤物久久| 亚洲深夜影院| 久久九九99| 日产国产高清一区二区三区| 麻豆91在线播放| 天堂8中文在线最新版在线| 欧美精品一卡| 视频小说一区二区| 久久久精品区| 成人在线视频www| 久久精品国产99久久6| 亚洲国产福利| 西西裸体人体做爰大胆久久久| 久久人人97超碰国产公开结果| 国产一区二区亚洲| 亚洲精品少妇| 欧美一区二区三区久久精品| 日韩在线理论| 91亚洲国产高清| 99成人在线| 欧美/亚洲一区| 日本电影一区二区| 国语一区二区三区| 日韩在线观看中文字幕| 91麻豆精品国产91久久久更新资源速度超快| 成人交换视频| 桃色一区二区| 日本综合字幕| 日韩精选视频| 天天综合网站| av高清一区| 色综合一本到久久亚洲91| 国产精品传媒精东影业在线 | 美女少妇全过程你懂的久久| 欧美亚洲国产日韩| 欧美男人操女人视频| 欧美日韩天堂| 欧美三级午夜理伦三级中文幕 | 日韩av一区二区三区四区| 国产精品久一| 国产精品一区二区av交换| 成人精品在线| 亚州综合一区| 精品视频一二| 亚洲精品福利| 久久91在线| 激情综合在线| 亚洲黄网站黄| 久久电影一区| 国产在线精彩视频| 色天使综合视频| 国产精品久久久久久久免费软件 | 国内不卡的一区二区三区中文字幕 | 老**午夜毛片一区二区三区 | 蜜桃视频在线网站| 成人午夜毛片| 麻豆一区二区三区| 成人国产精品一区二区网站| 亚洲免费毛片| 国产精品一区二区三区美女| 久久99国产精品久久99大师| 宅男在线一区| 久久xxxx| 色老太综合网| 捆绑调教一区二区三区| 欧美视频二区欧美影视| 日韩三级久久| 欧美一区二区三区高清视频| 欧美女人交a| 国产精品久久久久久麻豆一区软件 | 欧美国产一级| 久久免费影院| 国产精品777777在线播放| 亚洲无线观看| 最新精品国产| 三级在线看中文字幕完整版| 国产原创一区| 国产videos久久| 久久99偷拍| 男女精品网站| 成人四虎影院| 亚州国产精品| 999久久久亚洲| 男人的天堂久久精品| 国产一区二区三区黄网站| www.久久爱.com| 精品精品99| 免费在线观看日韩欧美| 久久精品国产99国产| 亚洲制服一区| 欧美aa国产视频| 少妇视频在线观看| 国内精品久久久久久久影视麻豆| 午夜欧洲一区| 午夜久久福利| 欧美精选视频一区二区| 国产精品亚洲片在线播放| 少妇精品导航| 93在线视频精品免费观看| 麻豆91在线播放免费| 91亚洲无吗| 免费人成黄页网站在线一区二区 | 日本欧美一区| 日韩伦理一区二区三区| 欧美老女人另类| 91在线成人| 综合激情久久| 亚洲一区免费| 麻豆精品蜜桃视频网站| 精品国内自产拍在线观看视频| 三级亚洲高清视频| 欧美日本不卡| 亚洲高清毛片| 88xx成人免费观看视频库| 亚洲第一福利社区| 最新日韩av| 麻豆一区二区三区| 香蕉精品久久| 精品国产黄a∨片高清在线| www.国产精品一区| 国产日韩电影| 精品久久亚洲| 超碰高清在线| 日韩av在线播放中文字幕| 丝袜a∨在线一区二区三区不卡| 国内精品久久久久久久97牛牛 | 日韩av在线免费观看不卡| 香蕉亚洲视频| 国产美女视频一区二区| 日韩视频二区| 亚洲一区色图| 99re国产精品| 高清久久精品| 久久国产精品亚洲77777| www一区二区三区| 久久国产精品毛片| 亚洲国产国产| av资源新版天堂在线| 日韩在线你懂的| 国产美女高潮在线观看| 日本一区二区三区播放| 成人福利av| 国产伦乱精品| 色综合视频一区二区三区44| 久久精品国产亚洲5555| 久久国产免费看| 极品av少妇一区二区| 亚洲久久在线| 欧美在线综合| 日韩免费一级| 日韩欧美2区| 欧美精品羞羞答答| 国产精品777777在线播放| 欧美国产美女| 久久久精品午夜少妇| 亚洲区欧美区| 爽爽淫人综合网网站 | 91精品蜜臀一区二区三区在线| 久久精品国产免费| 最新日韩欧美| 日韩精品亚洲专区在线观看| 日韩中文在线电影| 欧美中文字幕一区二区| 一区二区三区四区在线观看国产日韩 | 国产精品一区二区三区美女| 亚洲国产91| 午夜一区二区三区不卡视频| 日韩二区在线观看| 亚洲91在线| 性色一区二区三区| 亚洲高清999| 日韩高清不卡一区二区三区| 宅男噜噜噜66国产日韩在线观看| 日韩精品免费一区二区夜夜嗨| 性欧美videohd高精| 不卡av一区二区| 日韩不卡手机在线v区| 欧美日韩卡一| 可以看av的网站久久看| 蜜臀av一区| 国产精品一区二区99| 91精品美女| 午夜在线精品偷拍| 精品日产乱码久久久久久仙踪林| 亚洲国产午夜| 88xx成人免费观看视频库| 欧美午夜不卡| 99久热这里只有精品视频免费观看| 99精品免费视频| av在线最新|