Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tensor-Core Correlator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ResearchAndDevelopment
Tensor-Core Correlator
Commits
71f1161c
Commit
71f1161c
authored
1 month ago
by
John Romein
Browse files
Options
Downloads
Patches
Plain Diff
Added backward-compatible tcc::Correlator() constructor.
parent
21f4fb69
No related branches found
No related tags found
1 merge request
!15
Fp8
Pipeline
#116427
passed
1 month ago
Stage: build
Stage: testing
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libtcc/Correlator.cc
+29
-0
29 additions, 0 deletions
libtcc/Correlator.cc
libtcc/Correlator.h
+10
-0
10 additions, 0 deletions
libtcc/Correlator.h
with
39 additions
and
0 deletions
libtcc/Correlator.cc
+
29
−
0
View file @
71f1161c
...
@@ -52,6 +52,35 @@ Correlator::Correlator(const cu::Device &device,
...
@@ -52,6 +52,35 @@ Correlator::Correlator(const cu::Device &device,
}
}
Correlator
::
Correlator
(
const
cu
::
Device
&
device
,
unsigned
nrBits
,
unsigned
nrReceivers
,
unsigned
nrChannels
,
unsigned
nrSamplesPerChannel
,
unsigned
nrPolarizations
,
unsigned
nrReceiversPerBlock
,
const
std
::
string
&
customStoreVisibility
)
:
Correlator
(
device
,
[
&
]
()
->
Format
{
switch
(
nrBits
)
{
case
4
:
return
Format
::
i4
;
case
8
:
return
Format
::
i8
;
case
16
:
return
Format
::
fp16
;
default
:
throw
std
::
invalid_argument
(
"nrBits should be 4, 8, or 16"
);
}
}
(),
nrReceivers
,
nrChannels
,
nrSamplesPerChannel
,
nrPolarizations
,
nrReceiversPerBlock
,
customStoreVisibility
)
{
}
unsigned
Correlator
::
defaultNrReceiversPerBlock
(
unsigned
nrReceivers
)
const
unsigned
Correlator
::
defaultNrReceiversPerBlock
(
unsigned
nrReceivers
)
const
{
{
return
nrReceivers
<=
32
?
32
:
return
nrReceivers
<=
32
?
32
:
...
...
This diff is collapsed.
Click to expand it.
libtcc/Correlator.h
+
10
−
0
View file @
71f1161c
...
@@ -23,6 +23,16 @@ namespace tcc {
...
@@ -23,6 +23,16 @@ namespace tcc {
const
std
::
string
&
customStoreVisibility
=
""
const
std
::
string
&
customStoreVisibility
=
""
);
// throw (cu::Error, nvrtc::Error)
);
// throw (cu::Error, nvrtc::Error)
[[
deprecated
]]
Correlator
(
const
cu
::
Device
&
,
unsigned
nrBits
,
unsigned
nrReceivers
,
unsigned
nrChannels
,
unsigned
nrSamplesPerChannel
,
unsigned
nrPolarizations
=
2
,
unsigned
nrReceiversPerBlock
=
0
,
// 0: use a heuristic value that should work well
const
std
::
string
&
customStoreVisibility
=
""
);
// throw (cu::Error, nvrtc::Error)
void
launchAsync
(
cu
::
Stream
&
,
cu
::
DeviceMemory
&
visibilities
,
cu
::
DeviceMemory
&
samples
,
bool
add
=
false
);
// throw (cu::Error)
void
launchAsync
(
cu
::
Stream
&
,
cu
::
DeviceMemory
&
visibilities
,
cu
::
DeviceMemory
&
samples
,
bool
add
=
false
);
// throw (cu::Error)
void
launchAsync
(
CUstream
,
CUdeviceptr
visibilities
,
CUdeviceptr
samples
,
bool
add
=
false
);
// throw (cu::Error)
void
launchAsync
(
CUstream
,
CUdeviceptr
visibilities
,
CUdeviceptr
samples
,
bool
add
=
false
);
// throw (cu::Error)
...
...
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