search for: load_data

Displaying 20 results from an estimated 25 matches for "load_data".

Did you mean: float_data
2007 Oct 26
1
Custom method in Application Controller
...elper methods in my view to render drop-down selection lists for City and State that have corresponding city_id and state_id foreign key references in my address model/table. In Chapter 3 of this book, the authors suggesting using a private method in the address controller (contrived) called "load_data" which looks something like this: def load_data @cities = City.find(:all) @states = State.find(:all) end This method initializes and loads the @cities and @states instances variables with a hash of all the cities and all the states in their respective tables. e.g: @cities = {:id => 1, :n...
2015 Oct 26
1
[PATCH 4/4] nouveau/debugfs: add interface for current load
...u/include/nvkm/subdev/pmu.h b/drm/nouveau/include/nvkm/subdev/pmu.h > index e61923d..be3c60e 100644 > --- a/drm/nouveau/include/nvkm/subdev/pmu.h > +++ b/drm/nouveau/include/nvkm/subdev/pmu.h > @@ -23,6 +23,13 @@ struct nvkm_pmu { > } recv; > }; > > +struct nvkm_pmu_load_data { > + u8 core; > + u8 mem; > + u8 video; > + u8 pcie; > +}; > + > int nvkm_pmu_send(struct nvkm_pmu *, u32 reply[2], u32 process, > u32 message, u32 data0, u32 data1); > void nvkm_pmu_pgob(struct nvkm_pmu *, bool enable); > @...
2015 Oct 26
0
[PATCH 4/4] nouveau/debugfs: add interface for current load
...lt;engine/fifo.h> diff --git a/drm/nouveau/include/nvkm/subdev/pmu.h b/drm/nouveau/include/nvkm/subdev/pmu.h index e61923d..be3c60e 100644 --- a/drm/nouveau/include/nvkm/subdev/pmu.h +++ b/drm/nouveau/include/nvkm/subdev/pmu.h @@ -23,6 +23,13 @@ struct nvkm_pmu { } recv; }; +struct nvkm_pmu_load_data { + u8 core; + u8 mem; + u8 video; + u8 pcie; +}; + int nvkm_pmu_send(struct nvkm_pmu *, u32 reply[2], u32 process, u32 message, u32 data0, u32 data1); void nvkm_pmu_pgob(struct nvkm_pmu *, bool enable); @@ -48,4 +55,7 @@ void nvkm_memx_train(struct nvkm_memx *); int nvkm_memx_train_result...
2015 Oct 26
0
[PATCH v2 4/4] nouveau/debugfs: add interface for current load
...lt;engine/fifo.h> diff --git a/drm/nouveau/include/nvkm/subdev/pmu.h b/drm/nouveau/include/nvkm/subdev/pmu.h index e61923d..be3c60e 100644 --- a/drm/nouveau/include/nvkm/subdev/pmu.h +++ b/drm/nouveau/include/nvkm/subdev/pmu.h @@ -23,6 +23,13 @@ struct nvkm_pmu { } recv; }; +struct nvkm_pmu_load_data { + u8 core; + u8 mem; + u8 video; + u8 pcie; +}; + int nvkm_pmu_send(struct nvkm_pmu *, u32 reply[2], u32 process, u32 message, u32 data0, u32 data1); void nvkm_pmu_pgob(struct nvkm_pmu *, bool enable); @@ -48,4 +55,7 @@ void nvkm_memx_train(struct nvkm_memx *); int nvkm_memx_train_result...
2015 Oct 26
0
[PATCH v3 4/4] nouveau/debugfs: add interface for current load
...lt;engine/fifo.h> diff --git a/drm/nouveau/include/nvkm/subdev/pmu.h b/drm/nouveau/include/nvkm/subdev/pmu.h index e61923d..be3c60e 100644 --- a/drm/nouveau/include/nvkm/subdev/pmu.h +++ b/drm/nouveau/include/nvkm/subdev/pmu.h @@ -23,6 +23,13 @@ struct nvkm_pmu { } recv; }; +struct nvkm_pmu_load_data { + u8 core; + u8 mem; + u8 video; + u8 pcie; +}; + int nvkm_pmu_send(struct nvkm_pmu *, u32 reply[2], u32 process, u32 message, u32 data0, u32 data1); void nvkm_pmu_pgob(struct nvkm_pmu *, bool enable); @@ -48,4 +55,7 @@ void nvkm_memx_train(struct nvkm_memx *); int nvkm_memx_train_result...
2007 Feb 14
2
File into database migration
Hi, I am trying to figure out an approach to load in our initial data into our database. I have written some load_data migrations which populate a lot of the stuff, how some of the database items are images etc and I am trying to figure out how to approach added them to the database during a rake db:migrate I am thinking if I store the files in a folder off the RAILS_ROOT I should be able to run code in the migrat...
2006 Jul 21
1
Capistrano before and after tasks
I try to extend db:test:copy_structure task to poulate test database with some existing data everytime i run it. It seems that "after_" task is not called as should be: > namespace :db do > namespace :test do > task :after_clone_structure do > puts "after_clone_structure_to_test" > end > end > end Anyone know what I am doing wrong?
2011 Nov 07
1
function that load variables
Dear all, I have saved few variable names into local files, I wanted to make a function that load this files and "generates" the variable names into my working environment. I have tried to do that as a function but my problem is  that this function does not return the variable names load_data<-function(path,Reload=FALSE){     if (Reload==TRUE){            print("Loading results")       # FirstSet       load(file=paste(path,'first',sep=""))       first<-Set       # SecondSet       load(file=paste(path,'second',sep=""))       second&...
2015 Oct 26
9
[PATCH 0/4] Add pdaemon load counters
this series makes use of the load counters we can use to get information about the current load of the gpu. This series includes the needed pmu bits and a debugfs interface to read them out. Currently the values are between 0 and 255, because it is much easier to implement it this way on the pmu. Karol Herbst (4): subdev/pmu/fuc: add gk104 pmu/fuc: add macros for pdaemon pwr counters
2012 Jun 05
0
Memory leak during instantiation of a reference class?
...:501, 1:62, 1:297] -13.57 -11.96 -10.36 -8.77 -7.2 ... The procedure that gives rise to the problem: > rm(list=ls()) > gc() used (Mb) gc trigger (Mb) max used (Mb) Ncells 921231 49.2 1476915 78.9 1166886 62.4 Vcells 792872 6.1 565291490 4312.9 690075184 5264.9 > load_data() Processing object: avg_anm_aud_lp ...... its a dataset...Dataset has ID83886080 Dataset has tid 50332028 Dataset has space id 67108866 Dataset has rank 3 Dataset has dims/maxdims: 501 62 297 / 501 62 297 501 62 297 Tidying name avg_anm_aud_lp .. to avg.anm.aud.lp ...Finished dataset P...
2006 Jun 05
2
Simple Rake question
Newbie question but here goes: Isn''t rake supposed to automatically search the lib/tasks subdirectory for Rake files/tasks? I have a task called "do_this.rake" in file foo.rake in lib/tasks/rails - how do I invoke it from the command line in the root directory of my Rails application? Presuming I have a file called "Rakefile" in the root directory of my Rails
2016 Feb 08
4
[PATCH 0/4] PMU engine counters
these are usually used for dynamic reclocking on gt215 and newer The counters are used to get the load of the core, memory, video and pcie loads currently I expose the loads through a debugfs "current_load" file, but I want to move that to nvif and just add a wrapper around that in debugfs for convenience Anyway there are still some issues I would like to discuss: 1. currently the
2016 Feb 16
4
[PATCH v2 0/4] PMU engine counters
these are usually used for dynamic reclocking on gt215 and newer The counters are used to get the load of the core, memory, video and pcie loads currently I expose the loads through a debugfs "current_load" file, but I want to move that to nvif and just add a wrapper around that in debugfs for convenience. Using nvif would have the advantage, that userspace tools can easily get loads
2012 Mar 02
0
devtools 0.6
...me you try (Fixes #55) * functions that run R now do so with `R_LIBS` set to the current `.libPaths()` - this will ensure that checking uses the development library if you are in development mode. `R_ENVIRON_USER` is set to an empty file to avoid your existing settings overriding this. * `load_data` (called by `load_all`) will also load data defined in R files in the data directory. (Fixes #45) * `dev_mode` performs some basic tests to make sure you're not setting your development library to a directory that's not already an R library. (Fixes #25) -- Assistant Professor / Do...
2012 Mar 02
0
devtools 0.6
...me you try (Fixes #55) * functions that run R now do so with `R_LIBS` set to the current `.libPaths()` - this will ensure that checking uses the development library if you are in development mode. `R_ENVIRON_USER` is set to an empty file to avoid your existing settings overriding this. * `load_data` (called by `load_all`) will also load data defined in R files in the data directory. (Fixes #45) * `dev_mode` performs some basic tests to make sure you're not setting your development library to a directory that's not already an R library. (Fixes #25) -- Assistant Professor / Do...
2012 Jun 20
0
Devtools 0.7
...ry as defined in the function call when expanding a compressed file. (Fixes #84) * `document` is always run in a C locale so that `NAMESPACE` sort order is consistent across platforms. * `install` now quotes `libpath` and build path so paths with embedded spaces work (Fixes #73 and #76) * `load_data` now also loads `.RData` files (Fixes #81) * `install` now has `args` argument to pass additional command line arguments on to `R CMD install` (replaces `...` which didn't actually do anything). (Fixes #69) * `load_code` does a better job of reconciling files in DESCRIPTION collate with...
2012 Jun 20
0
Devtools 0.7
...ry as defined in the function call when expanding a compressed file. (Fixes #84) * `document` is always run in a C locale so that `NAMESPACE` sort order is consistent across platforms. * `install` now quotes `libpath` and build path so paths with embedded spaces work (Fixes #73 and #76) * `load_data` now also loads `.RData` files (Fixes #81) * `install` now has `args` argument to pass additional command line arguments on to `R CMD install` (replaces `...` which didn't actually do anything). (Fixes #69) * `load_code` does a better job of reconciling files in DESCRIPTION collate with...
2013 Feb 18
8
Error with service: "invalid byte sequence in US-ASCII"
I just built a new puppet master, and whenever I run puppet on it, it throws an error while processing a service resource: # puppet agent -t > Info: Retrieving plugin > Info: Caching catalog for i-45dc2b1d > Info: Applying configuration version ''g > 9ea47ad19bc706a754c00f00a024309948d3ea03'' > Error: /Stage[main]/Ipa::Client::Basic/Service[sssd]: Could not
2020 Apr 28
5
[PATCH 0/1] Add uvirtio for testing
This is a way to create virtio based devices from user space. This is the background for this patch: We have some images works fine under qemu, we'd like to also run the same image on Google Cloud. Currently Google Cloud doesn't support virtio-vga. I had a patch to create a virtio-vga from kernel directly: https://www.spinics.net/lists/dri-devel/msg248573.html Then I got feedback from
2020 Apr 28
5
[PATCH 0/1] Add uvirtio for testing
This is a way to create virtio based devices from user space. This is the background for this patch: We have some images works fine under qemu, we'd like to also run the same image on Google Cloud. Currently Google Cloud doesn't support virtio-vga. I had a patch to create a virtio-vga from kernel directly: https://www.spinics.net/lists/dri-devel/msg248573.html Then I got feedback from