mirror of
https://github.com/karpathy/llm.c.git
synced 2026-07-26 20:15:08 -04:00
Merge pull request #514 from ngc92/compile-fix
fix compilation with older nvcc
This commit is contained in:
commit
cb5eff0578
1 changed files with 2 additions and 2 deletions
|
|
@ -228,10 +228,10 @@ struct alignas(16) Packed128 {
|
|||
return result;
|
||||
}
|
||||
__device__ static Packed128 zeros() {
|
||||
return constant(0);
|
||||
return constant(0.f);
|
||||
}
|
||||
__device__ static Packed128 ones() {
|
||||
return constant(1);
|
||||
return constant(1.f);
|
||||
}
|
||||
|
||||
__device__ ElementType& operator[](int index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue