-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
48 lines (35 loc) · 1.13 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// GPU-PSCF -GPU accelerated Polymer Self-Consistent Field Theory
// Copyright (2016) Jiuzhou Tang
// email: jiuzhou.tang@@theorie.physik.uni-goettingen.de
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation.
// ----------------------------------------------------------------------
// File : main.cpp
// PURPOSE
// Main program for GPU-PSCF
// AUTHOR
// Jiuzhou Tang
// --------
#include <stdio.h>
#include <assert.h>
#include<stdlib.h>
#include "struct.h" // data structure for scft program
#include "init_cuda.h"
#include "init.h"
#include <ctime>
// z dimension must be larger than Nz/GPU_N>=8
// CUDA runtime
int main(void){
// declare user defined structures
GPU_INFO gpu_info;
GRID grid;
CELL cell;
CUFFT_INFO cufft_info;
CHEMICAL AB_melts;
CHAIN diblock;
//init_grid_cell(&cufft_info,&gpu_info,&grid,&cell);
AB_diblock_scft_driver(&cufft_info,&gpu_info,&grid, &cell, &AB_melts, &diblock);
// fft_test(&gpu_info,&cufft_info);
return 0;
}