Skip to content

Commit

Permalink
Correcting a bug the mono script
Browse files Browse the repository at this point in the history
  • Loading branch information
rsachetto committed May 2, 2022
1 parent 2911e23 commit a5f41bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mono
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ cat << EOF > "${model_full_path}/${model_name}.cu"
#include <stddef.h>
#include <stdint.h>
__constant__ size_t pitch;
__constant__ real abstol;
__constant__ real reltol;
__constant__ real max_dt;
__constant__ real min_dt;
__constant__ uint8_t use_adpt;
size_t pitch_h;
#define sv(i) *((real *)((char *)sv + pitch * (i)) + thread_id)
__global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) {
Expand Down

0 comments on commit a5f41bd

Please sign in to comment.