Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fdt
Commits
d57c1ff8
Commit
d57c1ff8
authored
11 years ago
by
Moises Fernandez
Browse files
Options
Downloads
Patches
Plain Diff
Change order of instructions because CUDA compiler fails (compiler problem)
parent
f50a4408
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CUDA/PVM_single_c.cu
+4
-4
4 additions, 4 deletions
CUDA/PVM_single_c.cu
with
4 additions
and
4 deletions
CUDA/PVM_single_c.cu
+
4
−
4
View file @
d57c1ff8
...
@@ -297,7 +297,6 @@ __device__ void grad_PVM_single_c( //INPUT
...
@@ -297,7 +297,6 @@ __device__ void grad_PVM_single_c( //INPUT
for
(
int
dir
=
0
;
dir
<
max_dir
;
dir
++
){
for
(
int
dir
=
0
;
dir
<
max_dir
;
dir
++
){
for
(
int
p
=
0
;
p
<
nparams
;
p
++
)
myJ
[
p
]
=
0
;
for
(
int
p
=
0
;
p
<
nparams
;
p
++
)
myJ
[
p
]
=
0
;
if
(
dir
<
ndir
){
if
(
dir
<
ndir
){
Iso_term
=
isoterm_PVM_single_c
(
dir_iter
,
_d
,
bvals
);
//Precompute some terms for this datapoint
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
int
kk
=
2
+
3
*
(
k
)
+
1
;
int
kk
=
2
+
3
*
(
k
)
+
1
;
xx
.
x
=
x
[
k
*
3
];
xx
.
x
=
x
[
k
*
3
];
...
@@ -306,6 +305,7 @@ __device__ void grad_PVM_single_c( //INPUT
...
@@ -306,6 +305,7 @@ __device__ void grad_PVM_single_c( //INPUT
//Aniso_terms[k]=anisoterm_PVM_single_c(dir_iter,_d,xx,bvecs,bvals,ndirections);
//Aniso_terms[k]=anisoterm_PVM_single_c(dir_iter,_d,xx,bvecs,bvals,ndirections);
myJ
[
kk
]
=
anisoterm_PVM_single_c
(
dir_iter
,
_d
,
xx
,
bvecs
,
bvals
,
ndirections
);
myJ
[
kk
]
=
anisoterm_PVM_single_c
(
dir_iter
,
_d
,
xx
,
bvecs
,
bvals
,
ndirections
);
}
}
Iso_term
=
isoterm_PVM_single_c
(
dir_iter
,
_d
,
bvals
);
//Precompute some terms for this datapoint
sig
=
0
;
sig
=
0
;
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
int
kk
=
2
+
3
*
(
k
);
int
kk
=
2
+
3
*
(
k
);
...
@@ -438,8 +438,7 @@ __device__ void hess_PVM_single_c( //INPUT
...
@@ -438,8 +438,7 @@ __device__ void hess_PVM_single_c( //INPUT
for
(
int
dir
=
0
;
dir
<
max_dir
;
dir
++
){
for
(
int
dir
=
0
;
dir
<
max_dir
;
dir
++
){
for
(
int
p
=
0
;
p
<
nparams
;
p
++
)
myJ
[
p
]
=
0
;
for
(
int
p
=
0
;
p
<
nparams
;
p
++
)
myJ
[
p
]
=
0
;
if
(
dir
<
ndir
){
if
(
dir
<
ndir
){
Iso_term
=
isoterm_PVM_single_c
(
dir_iter
,
_d
,
bvals
);
//Precompute some terms for this datapoint
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
int
kk
=
2
+
3
*
(
k
)
+
1
;
int
kk
=
2
+
3
*
(
k
)
+
1
;
xx
.
x
=
x
[
k
*
3
];
xx
.
x
=
x
[
k
*
3
];
...
@@ -448,6 +447,7 @@ __device__ void hess_PVM_single_c( //INPUT
...
@@ -448,6 +447,7 @@ __device__ void hess_PVM_single_c( //INPUT
//Aniso_terms[k]=anisoterm_PVM_single_c(dir_iter,_d,xx,bvecs,bvals,ndirections);
//Aniso_terms[k]=anisoterm_PVM_single_c(dir_iter,_d,xx,bvecs,bvals,ndirections);
myJ
[
kk
]
=
anisoterm_PVM_single_c
(
dir_iter
,
_d
,
xx
,
bvecs
,
bvals
,
ndirections
);
myJ
[
kk
]
=
anisoterm_PVM_single_c
(
dir_iter
,
_d
,
xx
,
bvecs
,
bvals
,
ndirections
);
}
}
Iso_term
=
isoterm_PVM_single_c
(
dir_iter
,
_d
,
bvals
);
//Precompute some terms for this datapoint
sig
=
0
;
sig
=
0
;
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
for
(
int
k
=
0
;
k
<
nfib
;
k
++
){
int
kk
=
2
+
3
*
(
k
);
int
kk
=
2
+
3
*
(
k
);
...
@@ -526,7 +526,7 @@ extern "C" __global__ void fit_PVM_single_c_kernel( //INPUT
...
@@ -526,7 +526,7 @@ extern "C" __global__ void fit_PVM_single_c_kernel( //INPUT
const
bool
m_return_fanning
,
const
bool
m_return_fanning
,
const
bool
gradnonlin
,
const
bool
gradnonlin
,
//INPUT - OUTPUT
//INPUT - OUTPUT
float
*
params
)
float
*
params
)
{
{
int
idSubVOX
=
threadIdx
.
x
;
int
idSubVOX
=
threadIdx
.
x
;
int
idVOX
=
blockIdx
.
x
;
int
idVOX
=
blockIdx
.
x
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment